summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2014-07-26 09:54:48 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2014-07-26 09:54:48 -0700
commitc7716b8bb9080bdec51dcbd571d16eeaeea5e5b6 (patch)
tree069aef735f9eb19aacb5dbf4cc22eba1b2f8d98c
parentc8ba350d000739cda0a8fcc7166a44fae874039e (diff)
downloadrabbitmq-c-github-ask-c7716b8bb9080bdec51dcbd571d16eeaeea5e5b6.tar.gz
Correct htonll macro detection in CMake.
CMake's check_function_exists() only checks for a symbol being defined in a library, and does not cover the instance where a function may be defined as a macro a header. Use check_symbol_exists() to check arpa/inet.h header for symbol existance of htonll. This fixes #200
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a51d056..d4b4c4d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -103,7 +103,7 @@ set(CMAKE_REQUIRED_LIBRARIES ${SOCKET_LIBRARIES})
if (WIN32)
check_symbol_exists(htonll Winsock2.h HAVE_HTONLL)
else (WIN32)
- check_function_exists(htonll HAVE_HTONLL)
+ check_symbol_exists(htonll arpa/inet.h HAVE_HTONLL)
endif (WIN32)
cmake_pop_check_state()