aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-06-10 05:17:59 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-06-10 05:17:59 +0200
commitf533ec876716415ed0e6ba28d13dfb6263068e82 (patch)
tree30b5b8ddcad3d2673d76110b8a792a5cd1b3b067 /include/platform.h
parentd488f5e8dbdcd1f5f0ebb2ee9c1f2fb4a5374290 (diff)
downloadbusybox-w32-f533ec876716415ed0e6ba28d13dfb6263068e82.tar.gz
busybox-w32-f533ec876716415ed0e6ba28d13dfb6263068e82.tar.bz2
busybox-w32-f533ec876716415ed0e6ba28d13dfb6263068e82.zip
*: 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.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h
index 780568c2b..429220b0d 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -332,8 +332,8 @@ typedef unsigned smalluint;
332 332
333/* ---- Who misses what? ------------------------------------ */ 333/* ---- Who misses what? ------------------------------------ */
334 334
335/* Assume all these functions exist by default. Platforms where it is not 335/* Assume all these functions and header files exist by default.
336 * true will #undef them below. 336 * Platforms where it is not true will #undef them below.
337 */ 337 */
338#define HAVE_CLEARENV 1 338#define HAVE_CLEARENV 1
339#define HAVE_FDATASYNC 1 339#define HAVE_FDATASYNC 1
@@ -349,9 +349,14 @@ typedef unsigned smalluint;
349#define HAVE_STRSEP 1 349#define HAVE_STRSEP 1
350#define HAVE_STRSIGNAL 1 350#define HAVE_STRSIGNAL 1
351#define HAVE_VASPRINTF 1 351#define HAVE_VASPRINTF 1
352#define HAVE_XTABS 1
352#define HAVE_MNTENT_H 1 353#define HAVE_MNTENT_H 1
354#define HAVE_NET_ETHERNET_H 1
353#define HAVE_SYS_STATFS_H 1 355#define HAVE_SYS_STATFS_H 1
354#define HAVE_XTABS 1 356
357#if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 1)
358# undef HAVE_NET_ETHERNET_H
359#endif
355 360
356#if defined(__dietlibc__) 361#if defined(__dietlibc__)
357# undef HAVE_STRCHRNUL 362# undef HAVE_STRCHRNUL
@@ -368,6 +373,7 @@ typedef unsigned smalluint;
368# undef HAVE_STRSEP 373# undef HAVE_STRSEP
369# undef HAVE_STRSIGNAL 374# undef HAVE_STRSIGNAL
370# undef HAVE_VASPRINTF 375# undef HAVE_VASPRINTF
376# undef HAVE_NET_ETHERNET_H
371#endif 377#endif
372 378
373#if defined(__FreeBSD__) 379#if defined(__FreeBSD__)
@@ -395,6 +401,7 @@ typedef unsigned smalluint;
395# undef HAVE_DPRINTF 401# undef HAVE_DPRINTF
396# undef HAVE_STPCPY 402# undef HAVE_STPCPY
397# undef HAVE_STRCHRNUL 403# undef HAVE_STRCHRNUL
404# undef HAVE_NET_ETHERNET_H
398#endif 405#endif
399 406
400/* 407/*