diff options
author | Brent Cook <bcook@openbsd.org> | 2018-12-15 09:16:05 -0600 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2018-12-15 09:16:05 -0600 |
commit | 061094bd71cd3b55298ed2027e2a6442a59c210d (patch) | |
tree | b48995072338cd48f0393f99eaa2152297d804de | |
parent | 960ea062b18dcaa32b284d860564a94215a981ab (diff) | |
parent | 8fee85b01338dd9bca10beeb5e7a827e241a8fe5 (diff) | |
download | portable-061094bd71cd3b55298ed2027e2a6442a59c210d.tar.gz portable-061094bd71cd3b55298ed2027e2a6442a59c210d.tar.bz2 portable-061094bd71cd3b55298ed2027e2a6442a59c210d.zip |
Land #475, Fix CMake not finding getpagesize for Android 19
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4779087..9fe5837 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -1,5 +1,6 @@ | |||
1 | cmake_minimum_required (VERSION 2.8.8) | 1 | cmake_minimum_required (VERSION 3.0) |
2 | include(CheckFunctionExists) | 2 | include(CheckFunctionExists) |
3 | include(CheckSymbolExists) | ||
3 | include(CheckLibraryExists) | 4 | include(CheckLibraryExists) |
4 | include(CheckIncludeFiles) | 5 | include(CheckIncludeFiles) |
5 | include(CheckTypeSize) | 6 | include(CheckTypeSize) |
@@ -231,7 +232,7 @@ if(HAVE_GETENTROPY) | |||
231 | add_definitions(-DHAVE_GETENTROPY) | 232 | add_definitions(-DHAVE_GETENTROPY) |
232 | endif() | 233 | endif() |
233 | 234 | ||
234 | check_function_exists(getpagesize HAVE_GETPAGESIZE) | 235 | check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE) |
235 | if(HAVE_GETPAGESIZE) | 236 | if(HAVE_GETPAGESIZE) |
236 | add_definitions(-DHAVE_GETPAGESIZE) | 237 | add_definitions(-DHAVE_GETPAGESIZE) |
237 | endif() | 238 | endif() |