summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2015-12-02 19:44:10 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2015-12-02 19:45:49 +0100
commitbba1502411079c5d14cbdf7daaf8b49902b54ddf (patch)
tree42d7051aef82ec7590a485b88371709ed225db32 /test/src
parent389563376084c4a8d906d4c29ecab6246ebfb8d5 (diff)
Testsuite: fakens: check for sys/socket.h
FreeBSD seems to need it for AF_INET
Diffstat (limited to 'test/src')
-rw-r--r--test/src/fakens.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/fakens.c b/test/src/fakens.c
index 63cc59da2..e4584c4df 100644
--- a/test/src/fakens.c
+++ b/test/src/fakens.c
@@ -80,6 +80,9 @@ a number of seconds (followed by one space).
#include <sys/time.h>
#include <dirent.h>
#include <unistd.h>
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
#define FALSE 0
#define TRUE 1