diff options
author | Brent Cook <busterb@gmail.com> | 2021-11-09 23:04:29 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2021-11-09 23:04:29 -0600 |
commit | 2ac3d32ec532b9e62efe20f3e7d03245cd2b09c3 (patch) | |
tree | 232f4f698846e7ab19f76e8d553f47c14a0d3c97 | |
parent | f69066726257d07257fce6c5f076bbf27f49b376 (diff) | |
download | portable-2ac3d32ec532b9e62efe20f3e7d03245cd2b09c3.tar.gz portable-2ac3d32ec532b9e62efe20f3e7d03245cd2b09c3.tar.bz2 portable-2ac3d32ec532b9e62efe20f3e7d03245cd2b09c3.zip |
Update CMake for new header checks
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8338ab9..ef9070b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -286,11 +286,21 @@ if(HAVE_MEMMEM) | |||
286 | add_definitions(-DHAVE_MEMMEM) | 286 | add_definitions(-DHAVE_MEMMEM) |
287 | endif() | 287 | endif() |
288 | 288 | ||
289 | check_include_files(endian.h HAVE_ENDIAN_H) | ||
290 | if(HAVE_ENDIAN_H) | ||
291 | add_definitions(-DHAVE_ENDIAN_H) | ||
292 | endif() | ||
293 | |||
289 | check_include_files(err.h HAVE_ERR_H) | 294 | check_include_files(err.h HAVE_ERR_H) |
290 | if(HAVE_ERR_H) | 295 | if(HAVE_ERR_H) |
291 | add_definitions(-DHAVE_ERR_H) | 296 | add_definitions(-DHAVE_ERR_H) |
292 | endif() | 297 | endif() |
293 | 298 | ||
299 | check_include_files(netinet/ip.h HAVE_NETINET_IP_H) | ||
300 | if(HAVE_NETINET_IP_H) | ||
301 | add_definitions(-DHAVE_NETINET_IP_H) | ||
302 | endif() | ||
303 | |||
294 | if(ENABLE_ASM) | 304 | if(ENABLE_ASM) |
295 | if("${CMAKE_C_COMPILER_ABI}" STREQUAL "ELF") | 305 | if("${CMAKE_C_COMPILER_ABI}" STREQUAL "ELF") |
296 | if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86_64|amd64)") | 306 | if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86_64|amd64)") |