diff options
author | Dan Fandrich | 2011-06-10 05:17:59 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-06-10 05:17:59 +0200 |
commit | f533ec876716415ed0e6ba28d13dfb6263068e82 (patch) | |
tree | 30b5b8ddcad3d2673d76110b8a792a5cd1b3b067 /include/platform.h | |
parent | d488f5e8dbdcd1f5f0ebb2ee9c1f2fb4a5374290 (diff) | |
download | busybox-f533ec876716415ed0e6ba28d13dfb6263068e82.zip busybox-f533ec876716415ed0e6ba28d13dfb6263068e82.tar.gz |
*: simplify Ethernet header includes
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h index 780568c..429220b 100644 --- a/include/platform.h +++ b/include/platform.h @@ -332,8 +332,8 @@ typedef unsigned smalluint; /* ---- Who misses what? ------------------------------------ */ -/* Assume all these functions exist by default. Platforms where it is not - * true will #undef them below. +/* Assume all these functions and header files exist by default. + * Platforms where it is not true will #undef them below. */ #define HAVE_CLEARENV 1 #define HAVE_FDATASYNC 1 @@ -349,9 +349,14 @@ typedef unsigned smalluint; #define HAVE_STRSEP 1 #define HAVE_STRSIGNAL 1 #define HAVE_VASPRINTF 1 +#define HAVE_XTABS 1 #define HAVE_MNTENT_H 1 +#define HAVE_NET_ETHERNET_H 1 #define HAVE_SYS_STATFS_H 1 -#define HAVE_XTABS 1 + +#if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 1) +# undef HAVE_NET_ETHERNET_H +#endif #if defined(__dietlibc__) # undef HAVE_STRCHRNUL @@ -368,6 +373,7 @@ typedef unsigned smalluint; # undef HAVE_STRSEP # undef HAVE_STRSIGNAL # undef HAVE_VASPRINTF +# undef HAVE_NET_ETHERNET_H #endif #if defined(__FreeBSD__) @@ -395,6 +401,7 @@ typedef unsigned smalluint; # undef HAVE_DPRINTF # undef HAVE_STPCPY # undef HAVE_STRCHRNUL +# undef HAVE_NET_ETHERNET_H #endif /* |