From ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 14 Jan 2003 08:54:08 +0000 Subject: Eliminate most instances where we use linux kernel headers -Erik --- libbb/interface.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libbb') 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 @@ * 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, * and others. Copyright 1993 MicroWalt Corporation @@ -93,7 +93,7 @@ static int procnetdev_vsn = 1; #ifdef HAVE_HWSLIP -#include +#include #endif #if HAVE_AFINET6 @@ -1397,7 +1397,12 @@ static struct hwtype loop_hwtype = { #if HAVE_HWETHER #include + +#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 +#include +#else #include +#endif /* Display an Ethernet address in readable format. */ static char *pr_ether(unsigned char *ptr) -- cgit v1.2.3