changeset 17352:2dce3f29b1f5

test-getsockopt: avoid compiler warning 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>
author Eric Blake <eblake@redhat.com>
date Mon, 04 Mar 2013 08:35:57 -0700
parents 6fbd3d9c1853
children 62a78719f6c5
files ChangeLog tests/test-getsockopt.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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"