mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-03 20:35:17 +02:00
build: replace header checks with __has_include
See https://en.cppreference.com/w/cpp/preprocessor/include.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user