aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2018-12-15 09:16:05 -0600
committerBrent Cook <bcook@openbsd.org>2018-12-15 09:16:05 -0600
commit061094bd71cd3b55298ed2027e2a6442a59c210d (patch)
treeb48995072338cd48f0393f99eaa2152297d804de
parent960ea062b18dcaa32b284d860564a94215a981ab (diff)
parent8fee85b01338dd9bca10beeb5e7a827e241a8fe5 (diff)
downloadportable-061094bd71cd3b55298ed2027e2a6442a59c210d.tar.gz
portable-061094bd71cd3b55298ed2027e2a6442a59c210d.tar.bz2
portable-061094bd71cd3b55298ed2027e2a6442a59c210d.zip
Land #475, Fix CMake not finding getpagesize for Android 19
-rw-r--r--CMakeLists.txt5
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 @@
1cmake_minimum_required (VERSION 2.8.8) 1cmake_minimum_required (VERSION 3.0)
2include(CheckFunctionExists) 2include(CheckFunctionExists)
3include(CheckSymbolExists)
3include(CheckLibraryExists) 4include(CheckLibraryExists)
4include(CheckIncludeFiles) 5include(CheckIncludeFiles)
5include(CheckTypeSize) 6include(CheckTypeSize)
@@ -231,7 +232,7 @@ if(HAVE_GETENTROPY)
231 add_definitions(-DHAVE_GETENTROPY) 232 add_definitions(-DHAVE_GETENTROPY)
232endif() 233endif()
233 234
234check_function_exists(getpagesize HAVE_GETPAGESIZE) 235check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
235if(HAVE_GETPAGESIZE) 236if(HAVE_GETPAGESIZE)
236 add_definitions(-DHAVE_GETPAGESIZE) 237 add_definitions(-DHAVE_GETPAGESIZE)
237endif() 238endif()