summaryrefslogtreecommitdiff
path: root/package/libnet/patches/patch-src_libnet_link_linux_c
blob: 565aae510aba60f08f8321fc2e47c7ee67104b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"