Fix WIN32 compilation after commit 163c47bdc0d32785d831e4c93fea9ab7e023446b
authorJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 5 Jan 2012 20:57:52 +0000 (20:57 +0000)
committerJulien Danjou <julien@danjou.info>
Wed, 11 Jan 2012 17:03:10 +0000 (18:03 +0100)
WIN32 does not have arpa/inet.h, so do not try to include it unless _WIN32 is
not defined

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Peter Harris <pharris@opentext.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
src/xcb_auth.c
src/xcb_util.c

index 859ab8a..21c26b8 100644 (file)
@@ -30,7 +30,6 @@
 #include <sys/param.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <arpa/inet.h>
 
 #ifdef __INTERIX
 /* _don't_ ask. interix has INADDR_LOOPBACK in here. */
@@ -40,6 +39,7 @@
 #ifdef _WIN32
 #include "xcb_windefs.h"
 #else
+#include <arpa/inet.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <sys/un.h>
index a55df16..64a1f6d 100644 (file)
 #include <stddef.h>
 #include <unistd.h>
 #include <string.h>
-#include <arpa/inet.h>
 
 #ifdef _WIN32
 #include "xcb_windefs.h"
 #else
+#include <arpa/inet.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <netinet/in.h>