| 45 |
45 |
| 46 -#ifdef AF_PACKET |
46 -#ifdef AF_PACKET |
| 47 +/* Yes Solaris 11 defines AF_PACKET but it does so in sys/socket.h */ |
47 +/* Yes Solaris 11 defines AF_PACKET but it does so in sys/socket.h */ |
| 48 +/* rather than netpacket/packet.h as claimed here. Not ready for */ |
48 +/* rather than netpacket/packet.h as claimed here. Not ready for */ |
| 49 +/* prime time time so circumvent until corrected upstream. */ |
49 +/* prime time time so circumvent until corrected upstream. */ |
| 50 +#ifdef AF_PACKET_KAPUTTIBUG |
50 +#ifdef __linux || AF_PACKET_KAPUTTIBUG |
| 51 # ifdef HAVE_NETPACKET_PACKET_H |
51 # ifdef HAVE_NETPACKET_PACKET_H |
| 52 /* Solaris 11 and later, Linux distributions with newer glibc */ |
52 /* Solaris 11 and later, Linux distributions with newer glibc */ |
| 53 # include <netpacket/packet.h> |
53 # include <netpacket/packet.h> |