summaryrefslogtreecommitdiff
path: root/networking/ifconfig.c
diff options
context:
space:
mode:
authorEric Andersen2003-01-14 08:54:08 +0000
committerEric Andersen2003-01-14 08:54:08 +0000
commitab4e19afc66e13b6aac7429fdce95d2aa7cb15ae (patch)
tree712b347dc89d890fe0d5755ebbbe9c23eb891a4c /networking/ifconfig.c
parent92a06d0943a7890b6e69d9ad955feb6d138713b7 (diff)
downloadbusybox-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.zip
busybox-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.tar.gz
Eliminate most instances where we use linux kernel headers
-Erik
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r--networking/ifconfig.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 4c11858..95cc07a 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -15,7 +15,7 @@
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*
- * $Id: ifconfig.c,v 1.21 2002/12/27 17:42:01 mjn3 Exp $
+ * $Id: ifconfig.c,v 1.22 2003/01/14 08:54:07 andersen Exp $
*
*/
@@ -38,15 +38,21 @@
#include <ctype.h> /* isdigit and friends */
#include <stddef.h> /* offsetof */
#include <sys/ioctl.h>
+#include <net/if.h>
#include <net/if_arp.h>
#include <netinet/in.h>
+#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1
+#include <netpacket/packet.h>
+#include <net/ethernet.h>
+#else
+#include <asm/types.h>
#include <linux/if_ether.h>
-#include <net/if.h>
+#endif
#include "inet_common.h"
#include "busybox.h"
#ifdef CONFIG_FEATURE_IFCONFIG_SLIP
-# include <linux/if_slip.h>
+# include <net/if_slip.h>
#endif
/* I don't know if this is needed for busybox or not. Anyone? */