build: replace header checks with __has_include

See https://en.cppreference.com/w/cpp/preprocessor/include.
This commit is contained in:
fanquake
2025-05-02 14:24:14 +01:00
parent 5b8046a6e8
commit e1f543823b
4 changed files with 4 additions and 24 deletions

View File

@@ -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 <bitcoin-build-config.h> // IWYU pragma: keep
#include <cstring>
#include <string>
#include <thread>
@@ -16,7 +14,7 @@
#include <util/threadnames.h>
#ifdef HAVE_SYS_PRCTL_H
#if __has_include(<sys/prctl.h>)
#include <sys/prctl.h>
#endif