aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy/getentropy/getentropy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/entropy/getentropy/getentropy.cpp')
-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