summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-17 16:07:14 +0900
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2020-08-17 14:47:16 +0000
commit6886dd7e96d475b64ac3c41a96a759c7d5fa2be9 (patch)
tree4257d2fac9b897fb3d79182a014468e5337a799c /CMakeLists.txt
parentf65c9e6665bf5bed20710e6a278d4fa83a6b32a8 (diff)
downloadtdelibs-6886dd7e96d475b64ac3c41a96a759c7d5fa2be9.tar.gz
tdelibs-6886dd7e96d475b64ac3c41a96a759c7d5fa2be9.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>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 35137c8fe..73a14594c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -395,6 +395,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 )