aboutsummaryrefslogtreecommitdiff
path: root/libxcb/src/xcb_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'libxcb/src/xcb_auth.c')
-rw-r--r--libxcb/src/xcb_auth.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/libxcb/src/xcb_auth.c b/libxcb/src/xcb_auth.c
index 104f2f07b..c0ad90267 100644
--- a/libxcb/src/xcb_auth.c
+++ b/libxcb/src/xcb_auth.c
@@ -27,12 +27,19 @@
#include <assert.h>
#include <X11/Xauth.h>
+#include <X11/Xwinsock.h>
+#include <stdlib.h>
+#ifndef _MSC_VER
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/un.h>
#include <sys/param.h>
#include <unistd.h>
-#include <stdlib.h>
+#else
+typedef unsigned in_addr_t;
+#define MAXPATHLEN 255
+#define snprintf _snprintf
+#endif
#include "xcb.h"
#include "xcbint.h"
@@ -41,6 +48,10 @@
#include <X11/Xdmcp.h>
#endif
+#ifndef HAVE_GETADDRINFO
+#include "dummyin6.h"
+#endif
+
enum auth_protos {
#ifdef HASXDMAUTH
AUTH_XA1,