diff options
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 ff7970321..bdb77bc4a 100644 --- a/libbb/interface.c +++ b/libbb/interface.c | |||
@@ -15,7 +15,7 @@ | |||
15 | * that either displays or sets the characteristics of | 15 | * that either displays or sets the characteristics of |
16 | * one or more of the system's networking interfaces. | 16 | * one or more of the system's networking interfaces. |
17 | * | 17 | * |
18 | * Version: $Id: interface.c,v 1.12 2002/11/28 10:20:45 bug1 Exp $ | 18 | * Version: $Id: interface.c,v 1.13 2003/01/14 08:54:06 andersen Exp $ |
19 | * | 19 | * |
20 | * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> | 20 | * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> |
21 | * and others. Copyright 1993 MicroWalt Corporation | 21 | * and others. Copyright 1993 MicroWalt Corporation |
@@ -93,7 +93,7 @@ static int procnetdev_vsn = 1; | |||
93 | 93 | ||
94 | 94 | ||
95 | #ifdef HAVE_HWSLIP | 95 | #ifdef HAVE_HWSLIP |
96 | #include <linux/if_slip.h> | 96 | #include <net/if_slip.h> |
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | #if HAVE_AFINET6 | 99 | #if HAVE_AFINET6 |
@@ -1397,7 +1397,12 @@ static struct hwtype loop_hwtype = { | |||
1397 | 1397 | ||
1398 | #if HAVE_HWETHER | 1398 | #if HAVE_HWETHER |
1399 | #include <net/if_arp.h> | 1399 | #include <net/if_arp.h> |
1400 | |||
1401 | #if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 | ||
1402 | #include <net/ethernet.h> | ||
1403 | #else | ||
1400 | #include <linux/if_ether.h> | 1404 | #include <linux/if_ether.h> |
1405 | #endif | ||
1401 | 1406 | ||
1402 | /* Display an Ethernet address in readable format. */ | 1407 | /* Display an Ethernet address in readable format. */ |
1403 | static char *pr_ether(unsigned char *ptr) | 1408 | static char *pr_ether(unsigned char *ptr) |