]> git.pond.sub.org Git - empserver/blobdiff - src/lib/player/accept.c
(NS_ALL) [_WIN32]: Change NS_EVERYTHING back to NS_ALL, #undef NS_ALL to prevent...
[empserver] / src / lib / player / accept.c
index 2581337a4a862b7b90e9c3c725eda55b39e75585..eb160ff82f53e0f850c105cef73c7e0abf3056bd 100644 (file)
  *     Dave Pare, 1994
  */
 
+#if defined(_WIN32)
+#include <winsock2.h>
+#undef NS_ALL
+#endif
+
 #include "prototypes.h"
 #include "misc.h"
 #include "proto.h"
@@ -51,8 +56,6 @@
 #include <netinet/in.h>
 #include <sys/ioctl.h>
 #include <unistd.h>
-#else
-#include <winsock2.h>
 #endif
 #include <signal.h>
 #include <errno.h>