]> git.pond.sub.org Git - empserver/commitdiff
Replace winsock2.h and undef NS_ALL with sys/socket.h to prevent
authorRon Koenderink <rkoenderink@yahoo.ca>
Mon, 20 Aug 2007 20:18:33 +0000 (20:18 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Mon, 20 Aug 2007 20:18:33 +0000 (20:18 +0000)
multiple occurences undef NS_ALL from nesting include files.

src/lib/w32/posixio.c

index f516ad4f7338998b12d46e3e14d39462cf23619d..51ebabbf4969d49df36535afb8555474fef0910d 100644 (file)
@@ -43,8 +43,6 @@
  */
 
 #include <config.h>
-#include <winsock2.h>
-#undef NS_ALL
 #include <io.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -55,6 +53,7 @@
 #include <errno.h>
 
 #include "unistd.h"
+#include "sys/socket.h"
 #include "sys/uio.h"
 #include "misc.h"