summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/getserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/getserv.c')
-rw-r--r--otherlibs/unix/getserv.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/otherlibs/unix/getserv.c b/otherlibs/unix/getserv.c
index 675f2499a..2b9600927 100644
--- a/otherlibs/unix/getserv.c
+++ b/otherlibs/unix/getserv.c
@@ -15,14 +15,19 @@
#include <alloc.h>
#include <memory.h>
#include <fail.h>
-#include "unix.h"
+#include "unixsupport.h"
#ifdef HAS_SOCKETS
#include <sys/types.h>
+
+#ifndef _WIN32
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+#else
+#include <winsock.h>
+#endif
static value alloc_service_entry(entry)
struct servent * entry;