test-getsockopt: avoid compiler warning
authorEric Blake <eblake@redhat.com>
Mon, 4 Mar 2013 15:35:57 +0000 (08:35 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 4 Mar 2013 15:35:57 +0000 (08:35 -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 <eblake@redhat.com>
ChangeLog
tests/test-getsockopt.c

index 31f07e3..725fe13 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-04  Eric Blake  <eblake@redhat.com>
+
+       test-getsockopt: avoid compiler warning
+       * tests/test-getsockopt.c (includes): Ensure close is declared.
+
 2013-03-02  Bruno Haible  <bruno@clisp.org>
 
        sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
index 38158ae..7bbf73c 100644 (file)
@@ -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"