diff options
author | Dan Fandrich | 2011-06-10 05:17:59 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-06-10 05:17:59 +0200 |
commit | f533ec876716415ed0e6ba28d13dfb6263068e82 (patch) | |
tree | 30b5b8ddcad3d2673d76110b8a792a5cd1b3b067 /networking/ifconfig.c | |
parent | d488f5e8dbdcd1f5f0ebb2ee9c1f2fb4a5374290 (diff) | |
download | busybox-f533ec876716415ed0e6ba28d13dfb6263068e82.zip busybox-f533ec876716415ed0e6ba28d13dfb6263068e82.tar.gz |
*: 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 2a56da5..b6604f5 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c @@ -46,18 +46,14 @@ //usage: " [mem_start NN] [io_addr NN] [irq NN]\n") //usage: " [up|down] ..." +#include "libbb.h" +#include "inet_common.h" #include <net/if.h> #include <net/if_arp.h> #include <netinet/in.h> -#if defined(__GLIBC__) && __GLIBC__ >=2 && __GLIBC_MINOR__ >= 1 -#include <netpacket/packet.h> -#include <net/ethernet.h> -#else -#include <sys/types.h> -#include <netinet/if_ether.h> +#ifdef HAVE_NET_ETHERNET_H +# include <net/ethernet.h> #endif -#include "libbb.h" -#include "inet_common.h" #if ENABLE_FEATURE_IFCONFIG_SLIP # include <net/if_slip.h> |