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:55:07 +0100
commit914f8abde8a06b3a0e0e08b309dad62f5f0d7908 (patch)
tree68c88f02c05470bf865dd6299125083afc33af05
parent3880a8ed80a4b1e2c052bd62f328bba2f869d5ae (diff)
downloadlibssh-914f8abde8a06b3a0e0e08b309dad62f5f0d7908.tar.gz
libssh-914f8abde8a06b3a0e0e08b309dad62f5f0d7908.tar.xz
libssh-914f8abde8a06b3a0e0e08b309dad62f5f0d7908.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> (cherry picked from commit 8536cd9808b78a9037e848f37fa8b565d3c55b67)
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index d9ef5a76..e1eed715 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -102,8 +102,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)