aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2017-03-16 20:54:16 -0500
committerBrent Cook <bcook@openbsd.org>2017-03-16 20:54:16 -0500
commitff462f05a2e1337a5322eacb289e455be1d19e97 (patch)
tree6ec78f5f8230ce3cbe6c8e61286e47416cec482a
parent764ab1e6a9978f68eac491214bb5619ffc24774d (diff)
downloadportable-ff462f05a2e1337a5322eacb289e455be1d19e97.tar.gz
portable-ff462f05a2e1337a5322eacb289e455be1d19e97.tar.bz2
portable-ff462f05a2e1337a5322eacb289e455be1d19e97.zip
add getpagesize check for cmake
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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)
219 add_definitions(-DHAVE_GETENTROPY) 219 add_definitions(-DHAVE_GETENTROPY)
220endif() 220endif()
221 221
222check_function_exists(getpagesize HAVE_GETPAGESIZE)
223if(HAVE_GETPAGESIZE)
224 add_definitions(-DHAVE_GETPAGESIZE)
225endif()
226
222check_function_exists(timingsafe_bcmp HAVE_TIMINGSAFE_BCMP) 227check_function_exists(timingsafe_bcmp HAVE_TIMINGSAFE_BCMP)
223if(HAVE_TIMINGSAFE_BCMP) 228if(HAVE_TIMINGSAFE_BCMP)
224 add_definitions(-DHAVE_TIMINGSAFE_BCMP) 229 add_definitions(-DHAVE_TIMINGSAFE_BCMP)