diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/include/platform.h b/include/platform.h index e52dd7ba5..515ef031f 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -402,10 +402,6 @@ typedef unsigned smalluint; | |||
402 | # undef HAVE_STRVERSCMP | 402 | # undef HAVE_STRVERSCMP |
403 | #endif | 403 | #endif |
404 | 404 | ||
405 | #if defined(__dietlibc__) | ||
406 | # undef HAVE_STRCHRNUL | ||
407 | #endif | ||
408 | |||
409 | #if ENABLE_PLATFORM_MINGW32 | 405 | #if ENABLE_PLATFORM_MINGW32 |
410 | # undef HAVE_DPRINTF | 406 | # undef HAVE_DPRINTF |
411 | # undef HAVE_GETLINE | 407 | # undef HAVE_GETLINE |
@@ -453,7 +449,7 @@ typedef unsigned smalluint; | |||
453 | /* These BSD-derived OSes share many similarities */ | 449 | /* These BSD-derived OSes share many similarities */ |
454 | #if (defined __digital__ && defined __unix__) \ | 450 | #if (defined __digital__ && defined __unix__) \ |
455 | || defined __APPLE__ \ | 451 | || defined __APPLE__ \ |
456 | || defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__ | 452 | || defined __OpenBSD__ || defined __NetBSD__ |
457 | # undef HAVE_CLEARENV | 453 | # undef HAVE_CLEARENV |
458 | # undef HAVE_FDATASYNC | 454 | # undef HAVE_FDATASYNC |
459 | # undef HAVE_GETLINE | 455 | # undef HAVE_GETLINE |
@@ -468,10 +464,30 @@ typedef unsigned smalluint; | |||
468 | # undef HAVE_UNLOCKED_LINE_OPS | 464 | # undef HAVE_UNLOCKED_LINE_OPS |
469 | #endif | 465 | #endif |
470 | 466 | ||
471 | #if defined(__FreeBSD__) || defined(__APPLE__) | 467 | #if defined(__dietlibc__) |
468 | # undef HAVE_STRCHRNUL | ||
469 | #endif | ||
470 | |||
471 | #if defined(__APPLE__) | ||
472 | # undef HAVE_STRCHRNUL | 472 | # undef HAVE_STRCHRNUL |
473 | #endif | 473 | #endif |
474 | 474 | ||
475 | #if defined(__FreeBSD__) | ||
476 | # undef HAVE_CLEARENV | ||
477 | # undef HAVE_FDATASYNC | ||
478 | # undef HAVE_MNTENT_H | ||
479 | # undef HAVE_PTSNAME_R | ||
480 | # undef HAVE_SYS_STATFS_H | ||
481 | # undef HAVE_SIGHANDLER_T | ||
482 | # undef HAVE_STRVERSCMP | ||
483 | # undef HAVE_XTABS | ||
484 | # undef HAVE_UNLOCKED_LINE_OPS | ||
485 | # include <osreldate.h> | ||
486 | # if __FreeBSD_version < 1000029 | ||
487 | # undef HAVE_STRCHRNUL /* FreeBSD added strchrnul() between 1000028 and 1000029 */ | ||
488 | # endif | ||
489 | #endif | ||
490 | |||
475 | #if defined(__NetBSD__) | 491 | #if defined(__NetBSD__) |
476 | # define HAVE_GETLINE 1 /* Recent NetBSD versions have getline() */ | 492 | # define HAVE_GETLINE 1 /* Recent NetBSD versions have getline() */ |
477 | #endif | 493 | #endif |