]> git.pond.sub.org Git - empserver/commitdiff
Include <winsock2.h> only through "sys/socket.h"
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 18 Apr 2009 16:16:22 +0000 (18:16 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 30 Nov 2009 18:45:27 +0000 (19:45 +0100)
Because we need to #undef NS_ALL after <winsock2.h>, and want to do
that in just one place.

src/lib/empthread/ntthread.c

index e49374231e59e43a40fbd07110c2eb9e77e7d5d9..53e20848d3892d6cd0c1972b4872c9d64b988fc1 100644 (file)
 #include <stdarg.h>
 #include <sys/types.h>
 #include <time.h>
-#include <winsock2.h>
-#undef NS_ALL
 #include <windows.h>
 #include <process.h>
 #include "misc.h"
 #include "empthread.h"
 #include "prototypes.h"
 #include "server.h"
+#include "sys/socket.h"
 
 #define loc_MIN_THREAD_STACK  16384