diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/errnomodule.c | 1 | ||||
-rw-r--r-- | Modules/selectmodule.c | 1 | ||||
-rw-r--r-- | Modules/socketmodule.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c index b1beb00..ab4b5f1 100644 --- a/Modules/errnomodule.c +++ b/Modules/errnomodule.c @@ -5,6 +5,7 @@ /* Windows socket errors (WSA*) */ #ifdef MS_WINDOWS +#define WIN32_LEAN_AND_MEAN #include <winsock.h> #endif diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index c4ebecc..168197b 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -44,6 +44,7 @@ extern void bzero(void *, int); #endif #ifdef MS_WINDOWS +# define WIN32_LEAN_AND_MEAN # include <winsock.h> #else # define SOCKET int diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 135b716..1df1ae6 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -22,6 +22,7 @@ # define HAVE_GETNAMEINFO # define ENABLE_IPV6 #else +# define WIN32_LEAN_AND_MEAN # include <winsock.h> #endif #endif |