diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-05 08:00:17 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-05 08:00:17 +0000 |
commit | 40ea66cd9d06677cb24e2293e065c101c0dfa64b (patch) | |
tree | 8da960676b2f9cccfa0152a66d1988339c8c33b3 /networking/nameif.c | |
parent | 7207b88d062ca3fe58370ef9976388c0023ff746 (diff) |
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.
Diffstat (limited to 'networking/nameif.c')
-rw-r--r-- | networking/nameif.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/networking/nameif.c b/networking/nameif.c index e74a04213..dca7c8c08 100644 --- 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 */ |