diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-01-04 18:25:26 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2013-02-24 14:23:10 +0000 |
commit | 9316e88c68c2a2189cf90c55e9850d7428bcd356 (patch) | |
tree | a593ecc30c0097680336ac30592909c7d0ea0bb0 | |
parent | 01433c7bdd169ae8a59ffe79842de55e318bc3b8 (diff) |
Use Xwinsock.h on WIN32
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
-rw-r--r-- | xhost.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |