aboutsummaryrefslogtreecommitdiff
path: root/src/random.cpp
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-02-02 17:22:42 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-02-02 17:22:42 +0100
commit0c49e52b22be1baa8d51670e4f3c437fd3c0baa7 (patch)
tree3fd29aee58757f64d30950ebcb8e6b517d5a73b4 /src/random.cpp
parent5cd15ffdceace3a077d4719ef7c1704336d602e1 (diff)
downloadbitcoin-0c49e52b22be1baa8d51670e4f3c437fd3c0baa7.tar.xz
build: remove unneeded getentropy detection (HAVE_GETENTROPY)
Diffstat (limited to 'src/random.cpp')
-rw-r--r--src/random.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/random.cpp b/src/random.cpp
index fa53a0f7b9..b862510524 100644
--- a/src/random.cpp
+++ b/src/random.cpp
@@ -32,10 +32,8 @@
#include <sys/syscall.h>
#include <linux/random.h>
#endif
-#if defined(HAVE_GETENTROPY) || (defined(HAVE_GETENTROPY_RAND) && defined(MAC_OSX))
-#include <unistd.h>
-#endif
#if defined(HAVE_GETENTROPY_RAND) && defined(MAC_OSX)
+#include <unistd.h>
#include <sys/random.h>
#endif
#ifdef HAVE_SYSCTL_ARND