[BusyBox-cvs] busybox/libbb interface.c,1.12,1.13

Erik Andersen andersen at codepoet.org
Tue Jan 14 08:54:10 UTC 2003


Update of /var/cvs/busybox/libbb
In directory winder:/tmp/cvs-serv12906/libbb

Modified Files:
	interface.c 
Log Message:
Eliminate most instances where we use linux kernel headers
 -Erik


Index: interface.c
===================================================================
RCS file: /var/cvs/busybox/libbb/interface.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- interface.c	28 Nov 2002 10:20:45 -0000	1.12
+++ interface.c	14 Jan 2003 08:54:06 -0000	1.13
@@ -93,7 +93,7 @@
 
 
 #ifdef HAVE_HWSLIP
-#include <linux/if_slip.h>
+#include <net/if_slip.h>
 #endif
 
 #if HAVE_AFINET6
@@ -1397,7 +1397,12 @@
 
 #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)




More information about the busybox-cvs mailing list