Skip to content

Commit

Permalink
Detect strlcpy on the fly (musl libc)
Browse files Browse the repository at this point in the history
Detect strlcpy on the fly, as was done in falcosecurity/libs#110.

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
  • Loading branch information
mstemm committed Nov 2, 2021
1 parent 6a560bb commit 1503f84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/modules/falcosecurity-libs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ list(APPEND CMAKE_MODULE_PATH "${FALCOSECURITY_LIBS_SOURCE_DIR}/cmake/modules")

include(libscap)
include(libsinsp)

include(CheckSymbolExists)
check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
if(HAVE_STRLCPY)
add_definitions(-DHAVE_STRLCPY)
endif()

0 comments on commit 1503f84

Please sign in to comment.