From ff462f05a2e1337a5322eacb289e455be1d19e97 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 16 Mar 2017 20:54:16 -0500 Subject: [PATCH] add getpagesize check for cmake --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 558a6f5..94e4d0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,6 +219,11 @@ if(HAVE_GETENTROPY) add_definitions(-DHAVE_GETENTROPY) endif() +check_function_exists(getpagesize HAVE_GETPAGESIZE) +if(HAVE_GETPAGESIZE) + add_definitions(-DHAVE_GETPAGESIZE) +endif() + check_function_exists(timingsafe_bcmp HAVE_TIMINGSAFE_BCMP) if(HAVE_TIMINGSAFE_BCMP) add_definitions(-DHAVE_TIMINGSAFE_BCMP)