diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-07-05 08:00:17 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-07-05 08:00:17 +0000 |
commit | b395ee2aa7660a90f4a150d9e34d87f8b0c483a4 (patch) | |
tree | 8da960676b2f9cccfa0152a66d1988339c8c33b3 | |
parent | 6a018f7d7841ee6ce4a7fe74598631a815442c17 (diff) | |
download | busybox-w32-b395ee2aa7660a90f4a150d9e34d87f8b0c483a4.tar.gz busybox-w32-b395ee2aa7660a90f4a150d9e34d87f8b0c483a4.tar.bz2 busybox-w32-b395ee2aa7660a90f4a150d9e34d87f8b0c483a4.zip |
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.
git-svn-id: svn://busybox.net/trunk/busybox@7040 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 @@ | |||
35 | 35 | ||
36 | #include "busybox.h" | 36 | #include "busybox.h" |
37 | 37 | ||
38 | /* Older versions of net/if.h do not appear to define IF_NAMESIZE. */ | ||
39 | #ifndef IF_NAMESIZE | ||
40 | # ifdef IFNAMSIZ | ||
41 | # define IF_NAMESIZE IFNAMSIZ | ||
42 | # else | ||
43 | # define IF_NAMESIZE 16 | ||
44 | # endif | ||
45 | #endif | ||
46 | |||
38 | /* take from linux/sockios.h */ | 47 | /* take from linux/sockios.h */ |
39 | #define SIOCSIFNAME 0x8923 /* set interface name */ | 48 | #define SIOCSIFNAME 0x8923 /* set interface name */ |
40 | 49 | ||