diff options
author | Brent Cook <bcook@openbsd.org> | 2017-03-16 20:54:16 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2017-03-16 20:54:16 -0500 |
commit | ff462f05a2e1337a5322eacb289e455be1d19e97 (patch) | |
tree | 6ec78f5f8230ce3cbe6c8e61286e47416cec482a | |
parent | 764ab1e6a9978f68eac491214bb5619ffc24774d (diff) | |
download | portable-ff462f05a2e1337a5322eacb289e455be1d19e97.tar.gz portable-ff462f05a2e1337a5322eacb289e455be1d19e97.tar.bz2 portable-ff462f05a2e1337a5322eacb289e455be1d19e97.zip |
add getpagesize check for cmake
-rw-r--r-- | CMakeLists.txt | 5 |
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) |
220 | endif() | 220 | endif() |
221 | 221 | ||
222 | check_function_exists(getpagesize HAVE_GETPAGESIZE) | ||
223 | if(HAVE_GETPAGESIZE) | ||
224 | add_definitions(-DHAVE_GETPAGESIZE) | ||
225 | endif() | ||
226 | |||
222 | check_function_exists(timingsafe_bcmp HAVE_TIMINGSAFE_BCMP) | 227 | check_function_exists(timingsafe_bcmp HAVE_TIMINGSAFE_BCMP) |
223 | if(HAVE_TIMINGSAFE_BCMP) | 228 | if(HAVE_TIMINGSAFE_BCMP) |
224 | add_definitions(-DHAVE_TIMINGSAFE_BCMP) | 229 | add_definitions(-DHAVE_TIMINGSAFE_BCMP) |