Skip to content

Commit

Permalink
Fix timingsafe memcmp detection
Browse files Browse the repository at this point in the history
  • Loading branch information
botovq committed Dec 20, 2023
1 parent 308b137 commit 1463991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1463991

Please sign in to comment.