# HG changeset patch # User Michael Schloh von Bennewitz # Date 1344531441 -7200 # Node ID a5345734c62cf760bf18205721bc221900eb19ee # Parent c6b0e6c7f67df7de0b56668c9391aeb68c7f1e63 Correct flawed AF_PACKET correction and remove superfluous disable-shared. diff -r c6b0e6c7f67d -r a5345734c62c libpcap/libpcap.patch --- a/libpcap/libpcap.patch Thu Aug 09 18:55:01 2012 +0200 +++ b/libpcap/libpcap.patch Thu Aug 09 18:57:21 2012 +0200 @@ -47,7 +47,7 @@ +/* Yes Solaris 11 defines AF_PACKET but it does so in sys/socket.h */ +/* rather than netpacket/packet.h as claimed here. Not ready for */ +/* prime time time so circumvent until corrected upstream. */ -+#ifdef AF_PACKET_KAPUTTIBUG ++#ifdef __linux || AF_PACKET_KAPUTTIBUG # ifdef HAVE_NETPACKET_PACKET_H /* Solaris 11 and later, Linux distributions with newer glibc */ # include diff -r c6b0e6c7f67d -r a5345734c62c libpcap/libpcap.spec --- a/libpcap/libpcap.spec Thu Aug 09 18:55:01 2012 +0200 +++ b/libpcap/libpcap.spec Thu Aug 09 18:57:21 2012 +0200 @@ -73,8 +73,7 @@ GREP="grep" \ ./configure \ --prefix=%{l_prefix} \ - --mandir=%{l_prefix}/man \ - --disable-shared + --mandir=%{l_prefix}/man %{l_make} %{l_mflags -O} %install