aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortux3 <barrdetwix@gmail.com>2018-12-14 14:38:35 +0100
committerBrent Cook <bcook@openbsd.org>2018-12-15 09:18:02 -0600
commita675d33eab0fa524211918fdd0da0810343f0b59 (patch)
treea1a5021d837d4026531f123cb44881b1f81bd8e7
parent4842b6964d1cd3c5cb1495807212b95d11535540 (diff)
downloadportable-a675d33eab0fa524211918fdd0da0810343f0b59.tar.gz
portable-a675d33eab0fa524211918fdd0da0810343f0b59.tar.bz2
portable-a675d33eab0fa524211918fdd0da0810343f0b59.zip
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 8fde8cf..5b5ca8f 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)
@@ -229,7 +230,7 @@ if(HAVE_GETENTROPY)
229 add_definitions(-DHAVE_GETENTROPY) 230 add_definitions(-DHAVE_GETENTROPY)
230endif() 231endif()
231 232
232check_function_exists(getpagesize HAVE_GETPAGESIZE) 233check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
233if(HAVE_GETPAGESIZE) 234if(HAVE_GETPAGESIZE)
234 add_definitions(-DHAVE_GETPAGESIZE) 235 add_definitions(-DHAVE_GETPAGESIZE)
235endif() 236endif()