diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 27230b8..aa4eb23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,12 @@ if (CMAKE_C_COMPILER_ID STREQUAL "Clang") add_compile_options(-Wall -Wextra -ansi) endif() +include(CheckFunctionExists) +check_function_exists(strlcat HAVE_STRLCAT) +if(NOT HAVE_STRLCAT) + add_definitions(-DHAVE_STRLCAT=1) +endif() + set(SRC_FILES src/linebuffer.c src/word.c |