summaryrefslogtreecommitdiff
path: root/xhost.c
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-01-04 18:25:26 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2013-02-24 14:23:10 +0000
commit9316e88c68c2a2189cf90c55e9850d7428bcd356 (patch)
treea593ecc30c0097680336ac30592909c7d0ea0bb0 /xhost.c
parent01433c7bdd169ae8a59ffe79842de55e318bc3b8 (diff)
Use Xwinsock.h on WIN32
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
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