diff options
author | Eric Blake <eblake@redhat.com> | 2013-03-04 08:35:57 -0700 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2013-03-04 08:35:57 -0700 |
commit | 86c49022825569f143f618f62ec458337ae6f13d (patch) | |
tree | a18528e17f7b5b5022a9d7c5d9f2820daec59695 /tests | |
parent | 57af30911e556d42a49dec2b5156c6573d692183 (diff) | |
download | gnulib-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.c | 1 |
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" |