projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7207b88
)
Patch from Lars Kellogg-Stedman:
author
Eric Andersen
<andersen@codepoet.org>
Sat, 5 Jul 2003 08:00:17 +0000
(08:00 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Sat, 5 Jul 2003 08:00:17 +0000
(08:00 -0000)
Glibc 2.1.3 (used by the Hardhat Linux SDK distributed by Cyclades)
does not define IF_NAMESIZE in net/if.h.
networking/nameif.c
patch
|
blob
|
history
diff --git
a/networking/nameif.c
b/networking/nameif.c
index
e74a042
..
dca7c8c
100644
(file)
--- a/
networking/nameif.c
+++ b/
networking/nameif.c
@@
-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 */