diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-08 15:10:54 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-08 15:10:54 +0100 |
commit | 8e0ad2647a9725f189ad880b437619667e81343c (patch) | |
tree | 1934a226bb7f0c64b11f25e25bff80d866d5924e | |
parent | 5680e984516fa1fb3c16862fb747206da0edfbed (diff) | |
download | busybox-w32-8e0ad2647a9725f189ad880b437619667e81343c.tar.gz busybox-w32-8e0ad2647a9725f189ad880b437619667e81343c.tar.bz2 busybox-w32-8e0ad2647a9725f189ad880b437619667e81343c.zip |
Another FreeBSD fix from Matthias Andree
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/platform.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h index 2899a9093..bd11ad69a 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -415,7 +415,7 @@ typedef unsigned smalluint; | |||
415 | /* These BSD-derived OSes share many similarities */ | 415 | /* These BSD-derived OSes share many similarities */ |
416 | #if (defined __digital__ && defined __unix__) \ | 416 | #if (defined __digital__ && defined __unix__) \ |
417 | || defined __APPLE__ \ | 417 | || defined __APPLE__ \ |
418 | || defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__ | 418 | || defined __OpenBSD__ || defined __NetBSD__ |
419 | # undef HAVE_CLEARENV | 419 | # undef HAVE_CLEARENV |
420 | # undef HAVE_FDATASYNC | 420 | # undef HAVE_FDATASYNC |
421 | # undef HAVE_GETLINE | 421 | # undef HAVE_GETLINE |
@@ -439,9 +439,18 @@ typedef unsigned smalluint; | |||
439 | #endif | 439 | #endif |
440 | 440 | ||
441 | #if defined(__FreeBSD__) | 441 | #if defined(__FreeBSD__) |
442 | # include <sys/param.h> | 442 | # undef HAVE_CLEARENV |
443 | # undef HAVE_FDATASYNC | ||
444 | # undef HAVE_MNTENT_H | ||
445 | # undef HAVE_PTSNAME_R | ||
446 | # undef HAVE_SYS_STATFS_H | ||
447 | # undef HAVE_SIGHANDLER_T | ||
448 | # undef HAVE_STRVERSCMP | ||
449 | # undef HAVE_XTABS | ||
450 | # undef HAVE_UNLOCKED_LINE_OPS | ||
451 | # include <osreldate.h> | ||
443 | # if __FreeBSD_version < 1000029 | 452 | # if __FreeBSD_version < 1000029 |
444 | # undef HAVE_STRCHRNUL | 453 | # undef HAVE_STRCHRNUL /* FreeBSD added strchrnul() between 1000028 and 1000029 */ |
445 | # endif | 454 | # endif |
446 | #endif | 455 | #endif |
447 | 456 | ||