libpcap/libpcap.patch

changeset 750
0e7016e69724
parent 489
0348d09236d3
equal deleted inserted replaced
2:09bb6d449501 3:8773a7cf88f6
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>

mercurial