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:09 -0600
commit4bdc2934dc50db83a8979c04548c0bb619be5c8f (patch)
tree1b28e1af1169269ac5b7f25479d22624b7115ad5
parent7ea897967790c9e0c84583fb2c19c60fb74ed295 (diff)
downloadportable-4bdc2934dc50db83a8979c04548c0bb619be5c8f.tar.gz
portable-4bdc2934dc50db83a8979c04548c0bb619be5c8f.tar.bz2
portable-4bdc2934dc50db83a8979c04548c0bb619be5c8f.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 549849f..395fe92 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)
@@ -225,7 +226,7 @@ if(HAVE_GETENTROPY)
225 add_definitions(-DHAVE_GETENTROPY) 226 add_definitions(-DHAVE_GETENTROPY)
226endif() 227endif()
227 228
228check_function_exists(getpagesize HAVE_GETPAGESIZE) 229check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
229if(HAVE_GETPAGESIZE) 230if(HAVE_GETPAGESIZE)
230 add_definitions(-DHAVE_GETPAGESIZE) 231 add_definitions(-DHAVE_GETPAGESIZE)
231endif() 232endif()