diff --git a/cmake/bitcoin-build-config.h.in b/cmake/bitcoin-build-config.h.in index 19d815db0ee..41bd5d33d90 100644 --- a/cmake/bitcoin-build-config.h.in +++ b/cmake/bitcoin-build-config.h.in @@ -108,18 +108,6 @@ /* Define to 1 if std::system or ::wsystem is available. */ #cmakedefine HAVE_SYSTEM 1 -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_PRCTL_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_RESOURCES_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_VMMETER_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_VM_VM_PARAM_H 1 - /* Define to the address where bug reports for this package should be sent. */ #define CLIENT_BUGREPORT "@CLIENT_BUGREPORT@" diff --git a/cmake/introspection.cmake b/cmake/introspection.cmake index d4ed4866b9c..3c95c31bd0f 100644 --- a/cmake/introspection.cmake +++ b/cmake/introspection.cmake @@ -6,12 +6,6 @@ include(CheckCXXSourceCompiles) include(CheckCXXSymbolExists) include(CheckIncludeFileCXX) -# The following HAVE_{HEADER}_H variables go to the bitcoin-build-config.h header. -check_include_file_cxx(sys/prctl.h HAVE_SYS_PRCTL_H) -check_include_file_cxx(sys/resources.h HAVE_SYS_RESOURCES_H) -check_include_file_cxx(sys/vmmeter.h HAVE_SYS_VMMETER_H) -check_include_file_cxx(vm/vm_param.h HAVE_VM_VM_PARAM_H) - check_cxx_symbol_exists(O_CLOEXEC "fcntl.h" HAVE_O_CLOEXEC) check_cxx_symbol_exists(fdatasync "unistd.h" HAVE_FDATASYNC) check_cxx_symbol_exists(fork "unistd.h" HAVE_DECL_FORK) diff --git a/src/randomenv.cpp b/src/randomenv.cpp index 1811846677d..fbab23afe94 100644 --- a/src/randomenv.cpp +++ b/src/randomenv.cpp @@ -43,13 +43,13 @@ #endif #ifdef HAVE_SYSCTL #include -#ifdef HAVE_VM_VM_PARAM_H +#if __has_include() #include #endif -#ifdef HAVE_SYS_RESOURCES_H +#if __has_include() #include #endif -#ifdef HAVE_SYS_VMMETER_H +#if __has_include() #include #endif #endif diff --git a/src/util/threadnames.cpp b/src/util/threadnames.cpp index 032572fb53c..3e29814f338 100644 --- a/src/util/threadnames.cpp +++ b/src/util/threadnames.cpp @@ -2,8 +2,6 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include // IWYU pragma: keep - #include #include #include @@ -16,7 +14,7 @@ #include -#ifdef HAVE_SYS_PRCTL_H +#if __has_include() #include #endif