diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-06 09:53:25 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-06 09:53:25 +0100 |
commit | 2288ec26df8e47d9b699e46eecd05eb3570f03a0 (patch) | |
tree | 1d204b70e027fd737f6aae1b7308ae959f5bd0b9 /package/libnet/patches/patch-src_libnet_link_linux_c | |
parent | 45e7808c41c2e66266f738aa5eff70ce18cc04ac (diff) | |
parent | 667bc9e981847a1d117a2fc7110948075a268bdd (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/libnet/patches/patch-src_libnet_link_linux_c')
-rw-r--r-- | package/libnet/patches/patch-src_libnet_link_linux_c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/libnet/patches/patch-src_libnet_link_linux_c b/package/libnet/patches/patch-src_libnet_link_linux_c new file mode 100644 index 000000000..565aae510 --- /dev/null +++ b/package/libnet/patches/patch-src_libnet_link_linux_c @@ -0,0 +1,30 @@ +* from alpinelinux +--- libnet-1.1.6.orig/src/libnet_link_linux.c 2012-03-19 17:59:50.000000000 +0100 ++++ libnet-1.1.6/src/libnet_link_linux.c 2013-12-21 15:19:01.000000000 +0100 +@@ -30,26 +30,15 @@ + #include <sys/time.h> + + #include <net/if.h> +-#if (__GLIBC__) + #include <netinet/if_ether.h> + #include <net/if_arp.h> +-#else +-#include <linux/if_arp.h> +-#include <linux/if_ether.h> +-#endif + + #if (HAVE_PACKET_SOCKET) + #ifndef SOL_PACKET + #define SOL_PACKET 263 + #endif /* SOL_PACKET */ +-#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1 + #include <netpacket/packet.h> + #include <net/ethernet.h> /* the L2 protocols */ +-#else +-#include <asm/types.h> +-#include <linux/if_packet.h> +-#include <linux/if_ether.h> /* The L2 protocols */ +-#endif + #endif /* HAVE_PACKET_SOCKET */ + + #include "../include/libnet.h" |