diff options
-rw-r--r-- | src/lib/entropy/getentropy/getentropy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/entropy/getentropy/getentropy.cpp b/src/lib/entropy/getentropy/getentropy.cpp index a1a6169b0..e255bbd52 100644 --- a/src/lib/entropy/getentropy/getentropy.cpp +++ b/src/lib/entropy/getentropy/getentropy.cpp @@ -10,6 +10,10 @@ #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/random.h> #endif |