aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2019-01-06 13:20:29 -0600
committerBrent Cook <busterb@gmail.com>2019-01-06 15:47:55 -0600
commit7af3ba340d608860d519210032d190c26c6f6eae (patch)
tree60b1872ce6979728cccbb341afb0f4bc1cb8af24 /CMakeLists.txt
parent779ec4dedcc62204a4d2acecb528a24931313a3d (diff)
downloadportable-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.txt5
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)
238endif() 238endif()
239 239
240check_symbol_exists(timespecsub sys/time.h HAVE_TIMESPECSUB)
241if(HAVE_TIMESPECSUB)
242 add_definitions(-DHAVE_TIMESPECSUB)
243endif()
244
240check_function_exists(timingsafe_bcmp HAVE_TIMINGSAFE_BCMP) 245check_function_exists(timingsafe_bcmp HAVE_TIMINGSAFE_BCMP)
241if(HAVE_TIMINGSAFE_BCMP) 246if(HAVE_TIMINGSAFE_BCMP)
242 add_definitions(-DHAVE_TIMINGSAFE_BCMP) 247 add_definitions(-DHAVE_TIMINGSAFE_BCMP)