From 68fd5e0c89db565e55b90d71630507f5c367c7c1 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Wed, 29 Aug 2007 23:07:33 +0000 Subject: [PATCH] (sys/socket.h) [_WIN32]: Add comment to explain the include order dependencies. --- src/lib/w32/posixio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/w32/posixio.c b/src/lib/w32/posixio.c index c833e746..c5b4bc29 100644 --- a/src/lib/w32/posixio.c +++ b/src/lib/w32/posixio.c @@ -50,6 +50,11 @@ #include #include #include +/* + * 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 #include