[issue1746656] IPv6 Interface naming/indexing functions
Nadeem Vawda
report at bugs.python.org
Sun May 15 11:59:27 CEST 2011
Nadeem Vawda <nadeem.vawda at gmail.com> added the comment:
Also failing to compile on OS X:
http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%203.x/builds/1385/steps/test/logs/stdio
The problem seems to be that <net/if.h> is not being included on these
non-Linux systems. Looking at Modules/socketmodule.h reveals that its
inclusion is conditional on HAVE_NETPACKET_PACKET_H:
#ifdef HAVE_NETPACKET_PACKET_H
# include <sys/ioctl.h>
# include <net/if.h>
# include <netpacket/packet.h>
#endif
Changing it to something like this should solve the problem:
#ifdef HAVE_NET_IF_H
# include <net/if.h>
#endif
#ifdef HAVE_NETPACKET_PACKET_H
# include <sys/ioctl.h>
# include <netpacket/packet.h>
#endif
----------
nosy: +nadeem.vawda
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1746656>
_______________________________________
More information about the Python-bugs-list
mailing list