diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-15 11:16:22 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-15 11:16:22 (GMT) |
commit | d74b5936a1e3ded828fbc243b9de9da47af5af92 (patch) | |
tree | d73fee262da903c82887b7ff184d3fd33004cec8 /Modules | |
parent | aedb2823fd740dcdf64744d47eab0053324741b1 (diff) | |
download | cpython-d74b5936a1e3ded828fbc243b9de9da47af5af92.zip cpython-d74b5936a1e3ded828fbc243b9de9da47af5af92.tar.gz cpython-d74b5936a1e3ded828fbc243b9de9da47af5af92.tar.bz2 |
Fix _socket compilation failures on non-Linux buildbots (cf. issue #1746656).
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index f064795..db44fd3 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -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 |