diff options
author | Brent Cook <busterb@gmail.com> | 2022-10-24 19:33:21 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2022-10-24 19:33:21 -0500 |
commit | 0c8231e298f6d0384591a5e1b88564be7d37772e (patch) | |
tree | 6b48d0d610b4c2c7b44aeff131075b1676d56b0a /include | |
parent | 6be2433afcbe8ed12e94cd674ca5675b6163bea8 (diff) | |
parent | ef2d6c70daf540926d2d5fd4d50e2942633ec9bd (diff) | |
download | portable-0c8231e298f6d0384591a5e1b88564be7d37772e.tar.gz portable-0c8231e298f6d0384591a5e1b88564be7d37772e.tar.bz2 portable-0c8231e298f6d0384591a5e1b88564be7d37772e.zip |
Land #771, Fix endian detection on macOS
Diffstat (limited to 'include')
-rw-r--r-- | include/compat/endian.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/compat/endian.h b/include/compat/endian.h index 1ed255e..cd85f5c 100644 --- a/include/compat/endian.h +++ b/include/compat/endian.h | |||
@@ -24,6 +24,9 @@ | |||
24 | #elif defined(HAVE_ENDIAN_H) | 24 | #elif defined(HAVE_ENDIAN_H) |
25 | #include_next <endian.h> | 25 | #include_next <endian.h> |
26 | 26 | ||
27 | #elif defined(HAVE_MACHINE_ENDIAN_H) | ||
28 | #include_next <machine/endian.h> | ||
29 | |||
27 | #elif defined(__sun) || defined(_AIX) || defined(__hpux) | 30 | #elif defined(__sun) || defined(_AIX) || defined(__hpux) |
28 | #include <sys/types.h> | 31 | #include <sys/types.h> |
29 | #include <arpa/nameser_compat.h> | 32 | #include <arpa/nameser_compat.h> |