]> git.pond.sub.org Git - empserver/commitdiff
(sys/socket.h) [_WIN32]: Add comment to explain the include order
authorRon Koenderink <rkoenderink@yahoo.ca>
Wed, 29 Aug 2007 23:07:33 +0000 (23:07 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Wed, 29 Aug 2007 23:07:33 +0000 (23:07 +0000)
dependencies.

src/lib/w32/posixio.c

index c833e74610ff408d378dc6c25a0662a2241e6de3..c5b4bc295f392e1d47b06aecbdc48f5c49e79054 100644 (file)
 #include <share.h>
 #include <stdio.h>
 #include <stdarg.h>
 #include <share.h>
 #include <stdio.h>
 #include <stdarg.h>
+/*
+ * Need to include winsock2.h for ws2tcpip.h.
+ * Use sys/socket.h to ensure the #undef NS_ALL
+ * is not missed after including winsock2.h.
+ */
 #include "sys/socket.h"
 #include <sys/stat.h>
 #include <ws2tcpip.h>
 #include "sys/socket.h"
 #include <sys/stat.h>
 #include <ws2tcpip.h>