changeset 15669:cf217ff25ff6

accept4 tests: Fix for native Windows. * tests/test-accept4.c: Include sockets.h. (main): Invoke gl_sockets_startup. * modules/accept4-tests (Depends-on): Add sockets.
author Bruno Haible <bruno@clisp.org>
date Tue, 20 Sep 2011 21:24:02 +0200
parents d64334690661
children 3202e6b21fe9
files ChangeLog modules/accept4-tests tests/test-accept4.c
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-09-20  Bruno Haible  <bruno@clisp.org>
 
+	accept4 tests: Fix for native Windows.
+	* tests/test-accept4.c: Include sockets.h.
+	(main): Invoke gl_sockets_startup.
+	* modules/accept4-tests (Depends-on): Add sockets.
+
 	accept tests: Fix for native Windows.
 	* tests/test-accept.c: Include sockets.h.
 	(main): Invoke gl_sockets_startup.
--- a/modules/accept4-tests
+++ b/modules/accept4-tests
@@ -7,6 +7,7 @@
 fcntl-h
 netinet_in
 binary-io
+sockets
 
 configure.ac:
 
--- a/tests/test-accept4.c
+++ b/tests/test-accept4.c
@@ -26,12 +26,15 @@
 #include <netinet/in.h>
 
 #include "binary-io.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;