patch-src_libnet_link_linux_c 804 B

123456789101112131415161718192021222324252627282930
  1. * from alpinelinux
  2. --- libnet-1.1.6.orig/src/libnet_link_linux.c 2012-03-19 17:59:50.000000000 +0100
  3. +++ libnet-1.1.6/src/libnet_link_linux.c 2013-12-21 15:19:01.000000000 +0100
  4. @@ -30,26 +30,15 @@
  5. #include <sys/time.h>
  6. #include <net/if.h>
  7. -#if (__GLIBC__)
  8. #include <netinet/if_ether.h>
  9. #include <net/if_arp.h>
  10. -#else
  11. -#include <linux/if_arp.h>
  12. -#include <linux/if_ether.h>
  13. -#endif
  14. #if (HAVE_PACKET_SOCKET)
  15. #ifndef SOL_PACKET
  16. #define SOL_PACKET 263
  17. #endif /* SOL_PACKET */
  18. -#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
  19. #include <netpacket/packet.h>
  20. #include <net/ethernet.h> /* the L2 protocols */
  21. -#else
  22. -#include <asm/types.h>
  23. -#include <linux/if_packet.h>
  24. -#include <linux/if_ether.h> /* The L2 protocols */
  25. -#endif
  26. #endif /* HAVE_PACKET_SOCKET */
  27. #include "../include/libnet.h"