]> granicus.if.org Git - python/commitdiff
Attempt to address Windows buildbot failures
authorNick Coghlan <ncoghlan@gmail.com>
Mon, 22 Aug 2011 05:45:19 +0000 (15:45 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Mon, 22 Aug 2011 05:45:19 +0000 (15:45 +1000)
Modules/socketmodule.c

index 75cde79ed3f58b4b470b97219c1d1b37fb7cb665..81d1ce1070fd87fd815874dcddf4ed09f1043d8e 100644 (file)
@@ -263,7 +263,6 @@ if_indextoname(index) -- return the corresponding interface name\n\
 #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 @@ if_indextoname(index) -- return the corresponding interface name\n\
 
 /* 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)