aboutsummaryrefslogtreecommitdiff
path: root/X11/Xwinsock.h
diff options
context:
space:
mode:
Diffstat (limited to 'X11/Xwinsock.h')
-rw-r--r--X11/Xwinsock.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/X11/Xwinsock.h b/X11/Xwinsock.h
index a81dd7a25..5bbb9d1d9 100644
--- a/X11/Xwinsock.h
+++ b/X11/Xwinsock.h
@@ -39,6 +39,10 @@ The Open Group.
# undef XFree86Server
#endif
+#ifndef FD_SETSIZE
+#define FD_SETSIZE 1024
+#endif
+
/*
* mingw-w64 headers define BOOL as a typedef, protecting against macros
* mingw.org headers define BOOL in terms of WINBOOL
@@ -47,14 +51,17 @@ The Open Group.
#define _NO_BOOL_TYPEDEF
#define BOOL WINBOOL
#define INT32 wINT32
+#ifdef Status
#undef Status
+#endif
#define Status wStatus
#define ATOM wATOM
#define BYTE wBYTE
#define FreeResource wFreeResource
#include <winsock2.h>
+#include <ws2tcpip.h>
#undef Status
-#define Status int
+typedef int Status;
#undef BYTE
#undef BOOL
#undef INT32