diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | modules/accept-tests | 1 | ||||
-rw-r--r-- | tests/test-accept.c | 3 |
3 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2011-09-20 Bruno Haible <bruno@clisp.org> + + accept tests: Fix for native Windows. + * tests/test-accept.c: Include sockets.h. + (main): Invoke gl_sockets_startup. + * modules/accept-tests (Depends-on): Add sockets. + 2011-09-19 Bruno Haible <bruno@clisp.org> msvc-inval: Require a semicolon after DONE_MSVC_INVAL. diff --git a/modules/accept-tests b/modules/accept-tests index ea83a64a28..a03be0abbe 100644 --- a/modules/accept-tests +++ b/modules/accept-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: netinet_in +sockets configure.ac: diff --git a/tests/test-accept.c b/tests/test-accept.c index c4cef4708d..75161a454c 100644 --- a/tests/test-accept.c +++ b/tests/test-accept.c @@ -24,11 +24,14 @@ SIGNATURE_CHECK (accept, int, (int, struct sockaddr *, socklen_t *)); #include <errno.h> #include <netinet/in.h> +#include "sockets.h" #include "macros.h" int main (void) { + gl_sockets_startup (SOCKETS_1_1); + /* Test behaviour for invalid file descriptors. */ { struct sockaddr_in addr; |