diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-06-10 05:17:59 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-06-10 05:17:59 +0200 |
commit | f533ec876716415ed0e6ba28d13dfb6263068e82 (patch) | |
tree | 30b5b8ddcad3d2673d76110b8a792a5cd1b3b067 /networking/ifconfig.c | |
parent | d488f5e8dbdcd1f5f0ebb2ee9c1f2fb4a5374290 (diff) | |
download | busybox-w32-f533ec876716415ed0e6ba28d13dfb6263068e82.tar.gz busybox-w32-f533ec876716415ed0e6ba28d13dfb6263068e82.tar.bz2 busybox-w32-f533ec876716415ed0e6ba28d13dfb6263068e82.zip |
*: simplify Ethernet header includes
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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> |