# HG changeset patch # User Eric Blake # Date 1362411357 25200 # Node ID 2dce3f29b1f51184271957128b3503423dd879d9 # Parent 6fbd3d9c1853d8347cf26906d52f6fc4594b5a12 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 diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-03-04 Eric Blake + + test-getsockopt: avoid compiler warning + * tests/test-getsockopt.c (includes): Ensure close is declared. + 2013-03-02 Bruno Haible sys_types: Avoid autoconf warning about gl_SYS_TYPES_H. diff --git a/tests/test-getsockopt.c b/tests/test-getsockopt.c --- 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 +#include #include "sockets.h" #include "macros.h"