From 6860e9c808b32328ca80229bf5b4b1a2549b63fa Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 20 Sep 2011 21:22:22 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ modules/accept-tests | 1 + tests/test-accept.c | 3 +++ 3 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index eed69ce1a..f3c6f999f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-09-20 Bruno Haible + + 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 msvc-inval: Require a semicolon after DONE_MSVC_INVAL. diff --git a/modules/accept-tests b/modules/accept-tests index ea83a64a2..a03be0abb 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 c4cef4708..75161a454 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 #include +#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; -- 2.11.0