]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix _socket compilation failures on non-Linux buildbots (cf. issue #1746656).
authorNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 15 May 2011 11:16:22 +0000 (13:16 +0200)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 15 May 2011 11:16:22 +0000 (13:16 +0200)
Modules/socketmodule.h
configure
configure.in
pyconfig.h.in

index f064795b80f2662bd3f0d5cb4c0aabbc6438707a..db44fd368d350d5d79c7c463558e881d5e629961 100644 (file)
@@ -59,9 +59,12 @@ typedef int socklen_t;
 #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
 
index ae9edce2cb024882189f8b022f5b0fb3a578947e..d5506efd942469fc6982613605dbbae39e19a64a 100755 (executable)
--- a/configure
+++ b/configure
@@ -6037,7 +6037,7 @@ sys/lock.h sys/mkdev.h sys/modem.h \
 sys/param.h sys/poll.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
 sys/stat.h sys/termio.h sys/time.h \
 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
-libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
+libutil.h sys/resource.h net/if.h netpacket/packet.h sysexits.h bluetooth.h \
 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
index 52f07e6e07607ff5ed329a7c920895224e8d5726..3ae9a34ffe176999b52fcec2af516e2d22206492 100644 (file)
@@ -1293,7 +1293,7 @@ sys/lock.h sys/mkdev.h sys/modem.h \
 sys/param.h sys/poll.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
 sys/stat.h sys/termio.h sys/time.h \
 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
-libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
+libutil.h sys/resource.h net/if.h netpacket/packet.h sysexits.h bluetooth.h \
 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h)
 AC_HEADER_DIRENT
 AC_HEADER_MAJOR
index b24c4b00bfb153a5e25437de3c700a4c825aca8a..95d71c9c7fb833df0e44aef638e261138d4c507b 100644 (file)
 /* Define to 1 if you have the <netpacket/packet.h> header file. */
 #undef HAVE_NETPACKET_PACKET_H
 
+/* Define to 1 if you have the <net/if.h> header file. */
+#undef HAVE_NET_IF_H
+
 /* Define to 1 if you have the `nice' function. */
 #undef HAVE_NICE