diff options
Diffstat (limited to 'networking/libiproute/iplink.c')
-rw-r--r-- | networking/libiproute/iplink.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index 3b2f4dac1..1cfaf6d6a 100644 --- a/networking/libiproute/iplink.c +++ b/networking/libiproute/iplink.c | |||
@@ -18,10 +18,15 @@ | |||
18 | #include <string.h> | 18 | #include <string.h> |
19 | #include <unistd.h> | 19 | #include <unistd.h> |
20 | 20 | ||
21 | #include <linux/if.h> | 21 | #include <net/if.h> |
22 | #include <linux/if_packet.h> | 22 | #include <net/if_packet.h> |
23 | #include <netpacket/packet.h> | ||
24 | |||
25 | #if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 | ||
26 | #include <net/ethernet.h> | ||
27 | #else | ||
23 | #include <linux/if_ether.h> | 28 | #include <linux/if_ether.h> |
24 | #include <linux/sockios.h> | 29 | #endif |
25 | 30 | ||
26 | #include "rt_names.h" | 31 | #include "rt_names.h" |
27 | #include "utils.h" | 32 | #include "utils.h" |
@@ -29,6 +34,10 @@ | |||
29 | 34 | ||
30 | #include "libbb.h" | 35 | #include "libbb.h" |
31 | 36 | ||
37 | |||
38 | /* take from linux/sockios.h */ | ||
39 | #define SIOCSIFNAME 0x8923 /* set interface name */ | ||
40 | |||
32 | static int do_link; | 41 | static int do_link; |
33 | 42 | ||
34 | static int on_off(char *msg) | 43 | static int on_off(char *msg) |