From 14639912c9335653d5ff1007077a4fc3fcd03332 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Wed, 20 Dec 2023 16:09:18 +0100 Subject: [PATCH] Fix timingsafe memcmp detection --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cb96f8008..3b8c1aaa6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -302,8 +302,8 @@ if(HAVE_TIMINGSAFE_BCMP) endif() check_function_exists(timingsafe_memcmp HAVE_TIMINGSAFE_MEMCMP) -if(HAVE_MEMCMP) - add_definitions(-DHAVE_MEMCMP) +if(HAVE_TIMINGSAFE_MEMCMP) + add_definitions(-DHAVE_TIMINGSAFE_MEMCMP) endif() check_function_exists(memmem HAVE_MEMMEM)