diff options
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r-- | networking/ifconfig.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 2a56da561..b6604f5d1 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -46,18 +46,14 @@ | |||
46 | //usage: " [mem_start NN] [io_addr NN] [irq NN]\n") | 46 | //usage: " [mem_start NN] [io_addr NN] [irq NN]\n") |
47 | //usage: " [up|down] ..." | 47 | //usage: " [up|down] ..." |
48 | 48 | ||
49 | #include "libbb.h" | ||
50 | #include "inet_common.h" | ||
49 | #include <net/if.h> | 51 | #include <net/if.h> |
50 | #include <net/if_arp.h> | 52 | #include <net/if_arp.h> |
51 | #include <netinet/in.h> | 53 | #include <netinet/in.h> |
52 | #if defined(__GLIBC__) && __GLIBC__ >=2 && __GLIBC_MINOR__ >= 1 | 54 | #ifdef HAVE_NET_ETHERNET_H |
53 | #include <netpacket/packet.h> | 55 | # include <net/ethernet.h> |
54 | #include <net/ethernet.h> | ||
55 | #else | ||
56 | #include <sys/types.h> | ||
57 | #include <netinet/if_ether.h> | ||
58 | #endif | 56 | #endif |
59 | #include "libbb.h" | ||
60 | #include "inet_common.h" | ||
61 | 57 | ||
62 | #if ENABLE_FEATURE_IFCONFIG_SLIP | 58 | #if ENABLE_FEATURE_IFCONFIG_SLIP |
63 | # include <net/if_slip.h> | 59 | # include <net/if_slip.h> |