diff options
author | Brent Cook <busterb@gmail.com> | 2019-01-06 13:20:29 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2019-01-06 15:47:55 -0600 |
commit | 7af3ba340d608860d519210032d190c26c6f6eae (patch) | |
tree | 60b1872ce6979728cccbb341afb0f4bc1cb8af24 /CMakeLists.txt | |
parent | 779ec4dedcc62204a4d2acecb528a24931313a3d (diff) | |
download | portable-7af3ba340d608860d519210032d190c26c6f6eae.tar.gz portable-7af3ba340d608860d519210032d190c26c6f6eae.tar.bz2 portable-7af3ba340d608860d519210032d190c26c6f6eae.zip |
add configure-time check for timespecsub
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1efe6bc..bcba254 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -237,6 +237,11 @@ if(HAVE_GETPAGESIZE) | |||
237 | add_definitions(-DHAVE_GETPAGESIZE) | 237 | add_definitions(-DHAVE_GETPAGESIZE) |
238 | endif() | 238 | endif() |
239 | 239 | ||
240 | check_symbol_exists(timespecsub sys/time.h HAVE_TIMESPECSUB) | ||
241 | if(HAVE_TIMESPECSUB) | ||
242 | add_definitions(-DHAVE_TIMESPECSUB) | ||
243 | endif() | ||
244 | |||
240 | check_function_exists(timingsafe_bcmp HAVE_TIMINGSAFE_BCMP) | 245 | check_function_exists(timingsafe_bcmp HAVE_TIMINGSAFE_BCMP) |
241 | if(HAVE_TIMINGSAFE_BCMP) | 246 | if(HAVE_TIMINGSAFE_BCMP) |
242 | add_definitions(-DHAVE_TIMINGSAFE_BCMP) | 247 | add_definitions(-DHAVE_TIMINGSAFE_BCMP) |