summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2013-03-04 08:35:57 -0700
committerEric Blake <eblake@redhat.com>2013-03-04 08:35:57 -0700
commit86c49022825569f143f618f62ec458337ae6f13d (patch)
treea18528e17f7b5b5022a9d7c5d9f2820daec59695 /tests
parent57af30911e556d42a49dec2b5156c6573d692183 (diff)
downloadgnulib-86c49022825569f143f618f62ec458337ae6f13d.tar.gz
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-getsockopt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-getsockopt.c b/tests/test-getsockopt.c
index 38158ae352..7bbf73cb38 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"