summaryrefslogtreecommitdiff
path: root/networking/ifconfig.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-14 08:54:08 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-14 08:54:08 +0000
commitab4e19afc66e13b6aac7429fdce95d2aa7cb15ae (patch)
tree712b347dc89d890fe0d5755ebbbe9c23eb891a4c /networking/ifconfig.c
parent92a06d0943a7890b6e69d9ad955feb6d138713b7 (diff)
downloadbusybox-w32-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.tar.gz
busybox-w32-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.tar.bz2
busybox-w32-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.zip
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 4c1185899..95cc07ab0 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -15,7 +15,7 @@
15 * Foundation; either version 2 of the License, or (at 15 * Foundation; either version 2 of the License, or (at
16 * your option) any later version. 16 * your option) any later version.
17 * 17 *
18 * $Id: ifconfig.c,v 1.21 2002/12/27 17:42:01 mjn3 Exp $ 18 * $Id: ifconfig.c,v 1.22 2003/01/14 08:54:07 andersen Exp $
19 * 19 *
20 */ 20 */
21 21
@@ -38,15 +38,21 @@
38#include <ctype.h> /* isdigit and friends */ 38#include <ctype.h> /* isdigit and friends */
39#include <stddef.h> /* offsetof */ 39#include <stddef.h> /* offsetof */
40#include <sys/ioctl.h> 40#include <sys/ioctl.h>
41#include <net/if.h>
41#include <net/if_arp.h> 42#include <net/if_arp.h>
42#include <netinet/in.h> 43#include <netinet/in.h>
44#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1
45#include <netpacket/packet.h>
46#include <net/ethernet.h>
47#else
48#include <asm/types.h>
43#include <linux/if_ether.h> 49#include <linux/if_ether.h>
44#include <net/if.h> 50#endif
45#include "inet_common.h" 51#include "inet_common.h"
46#include "busybox.h" 52#include "busybox.h"
47 53
48#ifdef CONFIG_FEATURE_IFCONFIG_SLIP 54#ifdef CONFIG_FEATURE_IFCONFIG_SLIP
49# include <linux/if_slip.h> 55# include <net/if_slip.h>
50#endif 56#endif
51 57
52/* I don't know if this is needed for busybox or not. Anyone? */ 58/* I don't know if this is needed for busybox or not. Anyone? */