diff options
author | OBATA Akio <obache@wizdas.com> | 2020-08-17 16:07:14 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-08-17 16:47:37 +0200 |
commit | 3dee97b870a1ec044c9a831488d0d19d7fc737a0 (patch) | |
tree | c6f8bf4d5a0e6c4f0ac3fdb9fd0892d30716b3c8 /CMakeLists.txt | |
parent | 98a3fd49da14d603aedd2595704085e404bb681a (diff) | |
download | tdelibs-3dee97b870a1ec044c9a831488d0d19d7fc737a0.tar.gz tdelibs-3dee97b870a1ec044c9a831488d0d19d7fc737a0.zip |
Add `getservbyname_r` prototype detection to CMake
OpenBSD's prototype is differ than glibc's one, but it is declared.
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 6886dd7e96d475b64ac3c41a96a759c7d5fa2be9)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2184743a1..eba0a1549 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -391,6 +391,7 @@ check_function_exists( getpeername HAVE_GETPEERNAME ) check_function_exists( getprotobyname_r HAVE_GETPROTOBYNAME_R ) check_function_exists( getpt HAVE_GETPT ) check_function_exists( getservbyname_r HAVE_GETSERVBYNAME_R ) +check_symbol_exists( getservbyname_r "netdb.h" HAVE_DECL_GETSERVBYNAME_R ) check_function_exists( getservbyport_r HAVE_GETSERVBYPORT_R ) check_function_exists( getsockname HAVE_GETSOCKNAME ) check_function_exists( getsockopt HAVE_GETSOCKOPT ) |