diff options
| author | Brent Cook <busterb@gmail.com> | 2021-11-09 22:34:58 -0600 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2021-11-09 22:43:53 -0600 |
| commit | f69066726257d07257fce6c5f076bbf27f49b376 (patch) | |
| tree | 2153f8ebec920916dec22ee4e3e23185291bfc2e /include/compat/machine | |
| parent | c29f380d0c604efee33672172929c2e57554924f (diff) | |
| download | portable-f69066726257d07257fce6c5f076bbf27f49b376.tar.gz portable-f69066726257d07257fce6c5f076bbf27f49b376.tar.bz2 portable-f69066726257d07257fce6c5f076bbf27f49b376.zip | |
Autoconf updates
Move machine/endian.h to endian.h, use AC_HEADER_RESOLV over individual
header checks, and include prerequisites for netinet/ip.h check.
Diffstat (limited to 'include/compat/machine')
| -rw-r--r-- | include/compat/machine/endian.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/include/compat/machine/endian.h b/include/compat/machine/endian.h deleted file mode 100644 index bb22f5b..0000000 --- a/include/compat/machine/endian.h +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Public domain | ||
| 3 | * machine/endian.h compatibility shim | ||
| 4 | */ | ||
| 5 | |||
| 6 | #ifndef LIBCRYPTOCOMPAT_BYTE_ORDER_H_ | ||
| 7 | #define LIBCRYPTOCOMPAT_BYTE_ORDER_H_ | ||
| 8 | |||
| 9 | #if defined(_WIN32) | ||
| 10 | |||
| 11 | #define LITTLE_ENDIAN 1234 | ||
| 12 | #define BIG_ENDIAN 4321 | ||
| 13 | #define PDP_ENDIAN 3412 | ||
| 14 | |||
| 15 | /* | ||
| 16 | * Use GCC and Visual Studio compiler defines to determine endian. | ||
| 17 | */ | ||
| 18 | #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ | ||
| 19 | #define BYTE_ORDER LITTLE_ENDIAN | ||
| 20 | #else | ||
| 21 | #define BYTE_ORDER BIG_ENDIAN | ||
| 22 | #endif | ||
| 23 | |||
| 24 | #elif defined(HAVE_ENDIAN_H) | ||
| 25 | #include <endian.h> | ||
| 26 | |||
| 27 | #elif defined(__sun) || defined(_AIX) || defined(__hpux) | ||
| 28 | #include <sys/types.h> | ||
| 29 | #include <arpa/nameser_compat.h> | ||
| 30 | |||
| 31 | #elif defined(__sgi) | ||
| 32 | #include <standards.h> | ||
| 33 | #include <sys/endian.h> | ||
| 34 | |||
| 35 | #else | ||
| 36 | #include_next <machine/endian.h> | ||
| 37 | |||
| 38 | #endif | ||
| 39 | |||
| 40 | #ifndef __STRICT_ALIGNMENT | ||
| 41 | #define __STRICT_ALIGNMENT | ||
| 42 | #if defined(__i386) || defined(__i386__) || \ | ||
| 43 | defined(__x86_64) || defined(__x86_64__) || \ | ||
| 44 | defined(__s390__) || defined(__s390x__) || \ | ||
| 45 | defined(__aarch64__) || \ | ||
| 46 | ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6) | ||
| 47 | #undef __STRICT_ALIGNMENT | ||
| 48 | #endif | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #endif | ||
