Land #475, Fix CMake not finding getpagesize for Android 19

This commit is contained in:
Brent Cook 2018-12-15 09:16:05 -06:00
commit 061094bd71

View File

@ -1,5 +1,6 @@
cmake_minimum_required (VERSION 2.8.8)
cmake_minimum_required (VERSION 3.0)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(CheckLibraryExists)
include(CheckIncludeFiles)
include(CheckTypeSize)
@ -231,7 +232,7 @@ if(HAVE_GETENTROPY)
add_definitions(-DHAVE_GETENTROPY)
endif()
check_function_exists(getpagesize HAVE_GETPAGESIZE)
check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
if(HAVE_GETPAGESIZE)
add_definitions(-DHAVE_GETPAGESIZE)
endif()