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.
This commit is contained in:
parent
7207b88d06
commit
40ea66cd9d
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user