diff options
author | Eric Andersen | 2003-01-14 08:54:08 +0000 |
---|---|---|
committer | Eric Andersen | 2003-01-14 08:54:08 +0000 |
commit | ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae (patch) | |
tree | 712b347dc89d890fe0d5755ebbbe9c23eb891a4c /libbb | |
parent | 92a06d0943a7890b6e69d9ad955feb6d138713b7 (diff) | |
download | busybox-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.zip busybox-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.tar.gz |
Eliminate most instances where we use linux kernel headers
-Erik
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/interface.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libbb/interface.c b/libbb/interface.c index ff79703..bdb77bc 100644 --- a/libbb/interface.c +++ b/libbb/interface.c @@ -15,7 +15,7 @@ * that either displays or sets the characteristics of * one or more of the system's networking interfaces. * - * Version: $Id: interface.c,v 1.12 2002/11/28 10:20:45 bug1 Exp $ + * Version: $Id: interface.c,v 1.13 2003/01/14 08:54:06 andersen Exp $ * * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> * and others. Copyright 1993 MicroWalt Corporation @@ -93,7 +93,7 @@ static int procnetdev_vsn = 1; #ifdef HAVE_HWSLIP -#include <linux/if_slip.h> +#include <net/if_slip.h> #endif #if HAVE_AFINET6 @@ -1397,7 +1397,12 @@ static struct hwtype loop_hwtype = { #if HAVE_HWETHER #include <net/if_arp.h> + +#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 +#include <net/ethernet.h> +#else #include <linux/if_ether.h> +#endif /* Display an Ethernet address in readable format. */ static char *pr_ether(unsigned char *ptr) |