summaryrefslogtreecommitdiff
path: root/xhost.c
diff options
context:
space:
mode:
Diffstat (limited to 'xhost.c')
-rw-r--r--xhost.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xhost.c b/xhost.c
index f5633a1..7e6f88f 100644
--- a/xhost.c
+++ b/xhost.c
@@ -82,12 +82,18 @@ X Window System is a trademark of The Open Group.
#include <stdlib.h>
#ifdef NEEDSOCKETS
+#ifdef WIN32
+#include <X11/Xwinsock.h>
+#else
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
+#endif
#endif /* NEEDSOCKETS */
+#ifndef WIN32
#include <arpa/inet.h>
+#endif
#ifdef SECURE_RPC