[BusyBox-cvs] busybox/networking nameif.c,1.7,1.8

Erik Andersen andersen at busybox.net
Sat Jul 5 08:00:19 UTC 2003


Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv15153/networking

Modified Files:
	nameif.c 
Log Message:
Patch from Lars Kellogg-Stedman:

    Glibc 2.1.3 (used by the Hardhat Linux SDK distributed by Cyclades)
    does not define IF_NAMESIZE in net/if.h.



Index: nameif.c
===================================================================
RCS file: /var/cvs/busybox/networking/nameif.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- nameif.c	19 Mar 2003 09:12:38 -0000	1.7
+++ nameif.c	5 Jul 2003 08:00:17 -0000	1.8
@@ -35,6 +35,15 @@
 
 #include "busybox.h"
 
+/* Older versions of net/if.h do not appear to define IF_NAMESIZE. */
+#ifndef IF_NAMESIZE
+#  ifdef IFNAMSIZ
+#    define IF_NAMESIZE IFNAMSIZ
+#  else
+#    define IF_NAMESIZE 16
+#  endif
+#endif
+
 /* take from linux/sockios.h */
 #define SIOCSIFNAME	0x8923	/* set interface name */
 




More information about the busybox-cvs mailing list