changeset 15668:d64334690661

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.
author Bruno Haible <bruno@clisp.org>
date Tue, 20 Sep 2011 21:22:22 +0200
parents df3eb2f0f1e8
children cf217ff25ff6
files ChangeLog modules/accept-tests tests/test-accept.c
diffstat 3 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/modules/accept-tests
+++ b/modules/accept-tests
@@ -5,6 +5,7 @@
 
 Depends-on:
 netinet_in
+sockets
 
 configure.ac:
 
--- a/tests/test-accept.c
+++ b/tests/test-accept.c
@@ -24,11 +24,14 @@
 #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;