aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2023-12-20 16:09:18 +0100
committerTheo Buehler <tb@openbsd.org>2023-12-20 16:09:18 +0100
commit14639912c9335653d5ff1007077a4fc3fcd03332 (patch)
treebacfea3adbdf4132b0d3f663520c98b756c30c0d
parent308b137b9999d298b0cd279985a8fdf9b19cb4ee (diff)
downloadportable-14639912c9335653d5ff1007077a4fc3fcd03332.tar.gz
portable-14639912c9335653d5ff1007077a4fc3fcd03332.tar.bz2
portable-14639912c9335653d5ff1007077a4fc3fcd03332.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 6cb96f8..3b8c1aa 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)