aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-01-13 08:50:59 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-01-13 08:53:42 +0100
commit8536cd9808b78a9037e848f37fa8b565d3c55b67 (patch)
tree94c1a5dfea173df77e9084007c755b6a1e22f4c9
parent353751e3e33d5022b33a2b6f9952249f4a049482 (diff)
downloadlibssh-8536cd9808b78a9037e848f37fa8b565d3c55b67.tar.gz
libssh-8536cd9808b78a9037e848f37fa8b565d3c55b67.tar.xz
libssh-8536cd9808b78a9037e848f37fa8b565d3c55b67.zip
cmake: Fix ntohll and htonll macro detection.
BUG: https://red.libssh.org/issues/164 Thanks to Ryan Schmidt! Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index c5018d8f..5f570c3c 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -104,8 +104,8 @@ check_function_exists(snprintf HAVE_SNPRINTF)
check_function_exists(poll HAVE_POLL)
check_function_exists(select HAVE_SELECT)
check_function_exists(getaddrinfo HAVE_GETADDRINFO)
-check_function_exists(ntohll HAVE_NTOHLL)
-check_function_exists(htonll HAVE_HTONLL)
+check_symbol_exists(ntohll arpa/inet.h HAVE_NTOHLL)
+check_symbol_exists(htonll arpa/inet.h HAVE_HTONLL)
if (WIN32)
check_function_exists(_strtoui64 HAVE__STRTOUI64)