bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] test-getsockopt: avoid compiler warning


From: Eric Blake
Subject: [PATCH] test-getsockopt: avoid compiler warning
Date: Mon, 4 Mar 2013 08:36:40 -0700

test-getsockopt.c: In function 'main':
test-getsockopt.c:48:5: warning: implicit declaration of function 'close' 
[-Wimplicit-function-declaration]

* tests/test-getsockopt.c (includes): Ensure close is declared.

Signed-off-by: Eric Blake <address@hidden>
---

Pushing.

 ChangeLog               | 5 +++++
 tests/test-getsockopt.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 31f07e3..725fe13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-04  Eric Blake  <address@hidden>
+
+       test-getsockopt: avoid compiler warning
+       * tests/test-getsockopt.c (includes): Ensure close is declared.
+
 2013-03-02  Bruno Haible  <address@hidden>

        sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
diff --git a/tests/test-getsockopt.c b/tests/test-getsockopt.c
index 38158ae..7bbf73c 100644
--- a/tests/test-getsockopt.c
+++ b/tests/test-getsockopt.c
@@ -22,6 +22,7 @@
 SIGNATURE_CHECK (getsockopt, int, (int, int, int, void *, socklen_t *));

 #include <errno.h>
+#include <unistd.h>

 #include "sockets.h"
 #include "macros.h"
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]