summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/getproto.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/getproto.c')
-rw-r--r--otherlibs/unix/getproto.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/otherlibs/unix/getproto.c b/otherlibs/unix/getproto.c
index 1bb223461..7892a0c87 100644
--- a/otherlibs/unix/getproto.c
+++ b/otherlibs/unix/getproto.c
@@ -15,11 +15,15 @@
#include <alloc.h>
#include <memory.h>
#include <fail.h>
-#include "unix.h"
+#include "unixsupport.h"
#ifdef HAS_SOCKETS
+#ifndef _WIN32
#include <netdb.h>
+#else
+#include <winsock.h>
+#endif
static value alloc_proto_entry(entry)
struct protoent * entry;