diff Modules/socketmodule.c @ 72030:9fc5231c36e0

Attempt to address Windows buildbot failures
author Nick Coghlan <ncoghlan@gmail.com>
date Mon, 22 Aug 2011 15:45:19 +1000
parents c64216addd7f
children b4b84e87dc6b
line wrap: on
line diff
--- a/Modules/socketmodule.c	Mon Aug 22 11:55:57 2011 +1000
+++ b/Modules/socketmodule.c	Mon Aug 22 15:45:19 2011 +1000
@@ -263,7 +263,6 @@
 #ifdef HAVE_NET_IF_H
 #include <net/if.h>
 #endif
-#include <unistd.h>
 
 /* Generic socket object definitions and includes */
 #define PySocket_BUILDING_SOCKET
@@ -275,6 +274,7 @@
 
 /* Non-MS WINDOWS includes */
 # include <netdb.h>
+# include <unistd.h>
 
 /* Headers needed for inet_ntoa() and inet_addr() */
 # if defined(PYOS_OS2) && defined(PYCC_VACPP)