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 e6ca7b54b..206836adb 100644
--- a/X11/Xwinsock.h
+++ b/X11/Xwinsock.h
@@ -39,16 +39,23 @@ The Open Group.
# undef XFree86Server
#endif
+#ifndef FD_SETSIZE
+#define FD_SETSIZE 1024
+#endif
+
#define BOOL wBOOL
#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