Land #475, Fix CMake not finding getpagesize for Android 19
This commit is contained in:
commit
061094bd71
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user