summaryrefslogtreecommitdiff
path: root/tests/test-accept.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-20 21:22:22 +0200
committerBruno Haible <bruno@clisp.org>2011-09-20 21:22:22 +0200
commit6860e9c808b32328ca80229bf5b4b1a2549b63fa (patch)
tree7855397b2870d9804fab1dce29a5f3fc165e03be /tests/test-accept.c
parentcbf58f79a5541f258ec5e3b1e42c5f5579fce579 (diff)
downloadgnulib-6860e9c808b32328ca80229bf5b4b1a2549b63fa.tar.gz
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.
Diffstat (limited to 'tests/test-accept.c')
-rw-r--r--tests/test-accept.c3
1 files changed, 3 insertions, 0 deletions
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;