aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2022-01-10 17:42:16 -0500
committerJack Lloyd <[email protected]>2022-01-10 17:42:16 -0500
commit4fc5365e7195368958ebf4ee7bdaf7a2cb8ae258 (patch)
treeeb837ddee3046054d8d53a72bba017d69792fa0e /src/lib/entropy
parenta2d8f4b167fd9450210db2b97a7537d53db8fbb9 (diff)
No need for a conditional here
Diffstat (limited to 'src/lib/entropy')
-rw-r--r--src/lib/entropy/getentropy/getentropy.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/entropy/getentropy/getentropy.cpp b/src/lib/entropy/getentropy/getentropy.cpp
index e255bbd52..e2a42f26d 100644
--- a/src/lib/entropy/getentropy/getentropy.cpp
+++ b/src/lib/entropy/getentropy/getentropy.cpp
@@ -10,10 +10,7 @@
#if defined(BOTAN_TARGET_OS_IS_OPENBSD) || defined(BOTAN_TARGET_OS_IS_FREEBSD) || defined(BOTAN_TARGET_OS_IS_SOLARIS)
#include <unistd.h>
#else
- #if defined(BOTAN_TARGET_OS_HAS_POSIX1)
- // Allows successful compilation on macOS older than 10.12: Provides a missing typedef for `u_int`.
- #include <sys/types.h>
- #endif
+ #include <sys/types.h> // older macOS needs this before sys/random.h
#include <sys/random.h>
#endif