diff options
author | OBATA Akio <obache@wizdas.com> | 2019-04-20 16:46:15 +0900 |
---|---|---|
committer | OBATA Akio <obache@wizdas.com> | 2019-04-20 18:08:58 +0900 |
commit | 7537d9ef7d526052ca051d93692b290b5fb64d88 (patch) | |
tree | c2fdc0e11e5aa7cfe7e1998a3477cd657c6f9b6d /ktalkd/ConfigureChecks.cmake | |
parent | 2c18879814fa01d3bd9de69625c8ff1791f793b6 (diff) | |
download | tdenetwork-7537d9ef7d526052ca051d93692b290b5fb64d88.tar.gz tdenetwork-7537d9ef7d526052ca051d93692b290b5fb64d88.zip |
Change to check `strerror` and `fdopen` with CMake
It is hard to update list of "available" platforms.
Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'ktalkd/ConfigureChecks.cmake')
-rw-r--r-- | ktalkd/ConfigureChecks.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ktalkd/ConfigureChecks.cmake b/ktalkd/ConfigureChecks.cmake index 923854b0..d10b5ea4 100644 --- a/ktalkd/ConfigureChecks.cmake +++ b/ktalkd/ConfigureChecks.cmake @@ -17,6 +17,9 @@ check_include_file( utmp.h HAVE_UTMP_H ) check_include_file( utmpx.h HAVE_UTMPX_H ) check_function_exists( vsnprintf HAVE_VSNPRINTF ) +check_function_exists( strerror HAVE_STRERROR ) +check_symbol_exists( strerror "string.h" HAVE_STRERROR_PROTO ) +check_symbol_exists( fdopen "stdio.h" HAVE_FDOPEN_PROTO ) if( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" ) set( PROC_FIND_USER 1 CACHE INTERNAL "" FORCE ) |