aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2023-12-20 16:09:18 +0100
committerBrent Cook <busterb@gmail.com>2024-03-03 15:32:50 -0600
commitdef998b1b3d9f312bc4f740b41ac3d508f297a69 (patch)
treed5a9bc57f62acc17ee7313b9152f70d692ef13f1
parent453b5855aa805e123e3a1c492b8de4390d873c52 (diff)
downloadportable-def998b1b3d9f312bc4f740b41ac3d508f297a69.tar.gz
portable-def998b1b3d9f312bc4f740b41ac3d508f297a69.tar.bz2
portable-def998b1b3d9f312bc4f740b41ac3d508f297a69.zip
Fix timingsafe memcmp detection
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0540bb8..7a414aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -302,8 +302,8 @@ if(HAVE_TIMINGSAFE_BCMP)
302endif() 302endif()
303 303
304check_function_exists(timingsafe_memcmp HAVE_TIMINGSAFE_MEMCMP) 304check_function_exists(timingsafe_memcmp HAVE_TIMINGSAFE_MEMCMP)
305if(HAVE_MEMCMP) 305if(HAVE_TIMINGSAFE_MEMCMP)
306 add_definitions(-DHAVE_MEMCMP) 306 add_definitions(-DHAVE_TIMINGSAFE_MEMCMP)
307endif() 307endif()
308 308
309check_function_exists(memmem HAVE_MEMMEM) 309check_function_exists(memmem HAVE_MEMMEM)