diff options
author | Brent Cook <busterb@gmail.com> | 2022-10-24 19:32:19 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2022-10-24 19:32:19 -0500 |
commit | 1b9ce2dfc06739ae5107ed850b415abeac659e4e (patch) | |
tree | efc0cfdc9923c22fac36b55411ec88eedb992f7c /CMakeLists.txt | |
parent | 6419191d820c295055a11fccfe2f1387d6e682f8 (diff) | |
parent | ef2d6c70daf540926d2d5fd4d50e2942633ec9bd (diff) | |
download | portable-1b9ce2dfc06739ae5107ed850b415abeac659e4e.tar.gz portable-1b9ce2dfc06739ae5107ed850b415abeac659e4e.tar.bz2 portable-1b9ce2dfc06739ae5107ed850b415abeac659e4e.zip |
Land #771, Fix endian detection on macOS
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 03963a5..68a7c2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -291,6 +291,11 @@ if(HAVE_ENDIAN_H) | |||
291 | add_definitions(-DHAVE_ENDIAN_H) | 291 | add_definitions(-DHAVE_ENDIAN_H) |
292 | endif() | 292 | endif() |
293 | 293 | ||
294 | check_include_files(machine/endian.h HAVE_MACHINE_ENDIAN_H) | ||
295 | if(HAVE_MACHINE_ENDIAN_H) | ||
296 | add_definitions(-DHAVE_MACHINE_ENDIAN_H) | ||
297 | endif() | ||
298 | |||
294 | check_include_files(err.h HAVE_ERR_H) | 299 | check_include_files(err.h HAVE_ERR_H) |
295 | if(HAVE_ERR_H) | 300 | if(HAVE_ERR_H) |
296 | add_definitions(-DHAVE_ERR_H) | 301 | add_definitions(-DHAVE_ERR_H) |