| @@ -584,26 +584,31 @@ int sigwait(const unsigned int *set, int | | | @@ -584,26 +584,31 @@ int sigwait(const unsigned int *set, int |
584 | /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most | | 584 | /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most |
585 | significant byte first (like Motorola and SPARC, unlike Intel). */ | | 585 | significant byte first (like Motorola and SPARC, unlike Intel). */ |
586 | #ifndef __NetBSD__ | | 586 | #ifndef __NetBSD__ |
587 | /* Defined by the build process */ | | 587 | /* Defined by the build process */ |
588 | #if defined AC_APPLE_UNIVERSAL_BUILD | | 588 | #if defined AC_APPLE_UNIVERSAL_BUILD |
589 | # if defined __BIG_ENDIAN__ | | 589 | # if defined __BIG_ENDIAN__ |
590 | # define WORDS_BIGENDIAN 1 | | 590 | # define WORDS_BIGENDIAN 1 |
591 | # endif | | 591 | # endif |
592 | #else | | 592 | #else |
593 | # ifndef WORDS_BIGENDIAN | | 593 | # ifndef WORDS_BIGENDIAN |
594 | /* # undef WORDS_BIGENDIAN */ | | 594 | /* # undef WORDS_BIGENDIAN */ |
595 | # endif | | 595 | # endif |
596 | #endif | | 596 | #endif |
| | | 597 | #else /* __NetBSD__ */ |
| | | 598 | # include <endian.h> |
| | | 599 | # if _BYTE_ORDER == _BIG_ENDIAN |
| | | 600 | # define WORDS_BIGENDIAN 1 |
| | | 601 | # endif |
597 | #endif | | 602 | #endif |
598 | | | 603 | |
599 | /* Define to empty if `const' does not conform to ANSI C. */ | | 604 | /* Define to empty if `const' does not conform to ANSI C. */ |
600 | /* #undef const */ | | 605 | /* #undef const */ |
601 | | | 606 | |
602 | /* Define to empty if your compiler does not support "static inline". */ | | 607 | /* Define to empty if your compiler does not support "static inline". */ |
603 | /* #undef inline */ | | 608 | /* #undef inline */ |
604 | | | 609 | |
605 | /* Define to `unsigned int' if <sys/types.h> does not define. */ | | 610 | /* Define to `unsigned int' if <sys/types.h> does not define. */ |
606 | /* #undef size_t */ | | 611 | /* #undef size_t */ |
607 | | | 612 | |
608 | /* Define to `int' if <sys/types.h> does not define. */ | | 613 | /* Define to `int' if <sys/types.h> does not define. */ |
609 | /* #undef ssize_t */ | | 614 | /* #undef ssize_t */ |