summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cmake/config/common.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/config/common.cmake b/cmake/config/common.cmake
index 2e31bf4dd9..be69a892fd 100644
--- a/cmake/config/common.cmake
+++ b/cmake/config/common.cmake
@@ -36,6 +36,7 @@ EFL_OPTION(ENABLE_VALGRIND "Enable valgrind support" "${SUGGEST_VALGRIND}" DEPEN
36 36
37HEADER_CHECK(alloca.h) 37HEADER_CHECK(alloca.h)
38HEADER_CHECK(asm/hwcap.h) 38HEADER_CHECK(asm/hwcap.h)
39HEADER_CHECK(bsd/string.h)
39HEADER_CHECK(dirent.h) 40HEADER_CHECK(dirent.h)
40HEADER_CHECK(execinfo.h) 41HEADER_CHECK(execinfo.h)
41HEADER_CHECK(mcheck.h) 42HEADER_CHECK(mcheck.h)
@@ -80,7 +81,12 @@ FUNC_CHECK(shm_open INCLUDE_FILES sys/mman.h sys/stat.h fcntl.h LIBRARIES rt)
80FUNC_CHECK(siglongjmp INCLUDE_FILES setjmp.h) 81FUNC_CHECK(siglongjmp INCLUDE_FILES setjmp.h)
81FUNC_CHECK(splice INCLUDE_FILES fcntl.h DEFINITIONS "-D_GNU_SOURCE=1") 82FUNC_CHECK(splice INCLUDE_FILES fcntl.h DEFINITIONS "-D_GNU_SOURCE=1")
82FUNC_CHECK(strerror_r INCLUDE_FILES string.h) 83FUNC_CHECK(strerror_r INCLUDE_FILES string.h)
83FUNC_CHECK(strlcpy INCLUDE_FILES bsd/string.h) 84
85if(HAVE_BSD_STRING_H)
86 FUNC_CHECK(strlcpy INCLUDE_FILES bsd/string.h LIBRARIES bsd)
87else()
88 FUNC_CHECK(strlcpy INCLUDE_FILES string.h)
89endif()
84 90
85TYPE_CHECK(siginfo_t INCLUDE_FILES signal.h) 91TYPE_CHECK(siginfo_t INCLUDE_FILES signal.h)
86 92