From 767a06a506acd02dbed289847bcfdc9822ff508f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 22 Jan 2018 02:47:50 -0800 Subject: [PATCH] Use ether_ntohost() if we have it. We don't bother checking to see whether it's buggy; we assume those bugs are fixed by now. --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24ebcca3..e2abc7a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,7 +136,15 @@ endif(HAVE_NET_PFVAR_H) check_function_exists(ether_ntohost HAVE_ETHER_NTOHOST) if(HAVE_ETHER_NTOHOST) # - # OK, we have ether_ntohost(). Is it declared in ? + # OK, we have ether_ntohost(). We don't check whether it's buggy, + # as we assume any system that has CMake is likely to be new enough + # that, if it has ether_ntohost(), it's not buggy; we just decide + # to use it. + # + set(USE_ETHER_NTOHOST TRUE) + + # + # Is it declared in ? # # This test fails if we don't have or if we do # but it doesn't declare ether_ntohost().