# HG changeset patch # User Bruno Haible # Date 1316546542 -7200 # Node ID d64334690661f6f560dca09adb2f5f4e836a0d07 # Parent df3eb2f0f1e891547a9fb5622363110ab7db01b6 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. diff --git a/ChangeLog b/ChangeLog --- 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 --- a/modules/accept-tests +++ b/modules/accept-tests @@ -5,6 +5,7 @@ Depends-on: netinet_in +sockets configure.ac: diff --git a/tests/test-accept.c b/tests/test-accept.c --- a/tests/test-accept.c +++ b/tests/test-accept.c @@ -24,11 +24,14 @@ #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;