diff Modules/socketmodule.h @ 70142:434dfe42fde1

Fix _socket compilation failures on non-Linux buildbots (cf. issue #1746656).
author Nadeem Vawda <nadeem.vawda@gmail.com>
date Sun, 15 May 2011 13:16:22 +0200
parents 3d9a86b8cc98
children e767318baccd
line wrap: on
line diff
--- a/Modules/socketmodule.h	Sun May 15 10:27:49 2011 +0200
+++ b/Modules/socketmodule.h	Sun May 15 13:16:22 2011 +0200
@@ -59,9 +59,12 @@
 #include <bluetooth.h>
 #endif
 
+#ifdef HAVE_NET_IF_H
+# include <net/if.h>
+#endif
+
 #ifdef HAVE_NETPACKET_PACKET_H
 # include <sys/ioctl.h>
-# include <net/if.h>
 # include <netpacket/packet.h>
 #endif