diff options
author | Gerald Combs <gerald@wireshark.org> | 2021-07-14 18:53:12 -0700 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-07-15 06:41:05 +0000 |
commit | 34ef2066e560ab618548a51c6e01bc5f49508697 (patch) | |
tree | 12f6e30d8f7d060b811c2780893490d8500427e1 /ConfigureChecks.cmake | |
parent | cbed7130ded4074952baf29a7c2dca1278b62edc (diff) |
CMake: Don't bother checking for fcntl.h or floorl.
fcntl.h appears to be available on all of our supported platforms,
including Windows. We've also been including it without HAVE_FCNTL_H
guards in a few places (e.g. sshdump.c) without any issues for some
time.
floorl is part of C99.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 7d7ade8f2b..1181a7f375 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -13,7 +13,6 @@ include(CMakePushCheckState) include(CheckIncludeFile) include(CheckIncludeFiles) check_include_file("arpa/inet.h" HAVE_ARPA_INET_H) -check_include_file("fcntl.h" HAVE_FCNTL_H) check_include_file("getopt.h" HAVE_GETOPT_H) check_include_file("grp.h" HAVE_GRP_H) # @@ -85,16 +84,6 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.] endif() # -# Use check_symbol_exists just in case math.h does something magic -# and there's not actually a function named floorl() -# -cmake_push_check_state() -set(CMAKE_REQUIRED_INCLUDES ${M_INCLUDE_DIRS}) -set(CMAKE_REQUIRED_LIBRARIES ${M_LIBRARIES}) -check_symbol_exists("floorl" "math.h" HAVE_FLOORL) -cmake_pop_check_state() - -# # Check whether we have clock_gettime(). # It's not on Windows, so don't waste time checking for it. # It's in newer POSIX, so some, but not all, UN*Xes have it. |