summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--modules/accept-tests1
-rw-r--r--tests/test-accept.c3
3 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index eed69ce1af..f3c6f999fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;