diff --git a/crypto/fipsmodule/rand/urandom.c b/crypto/fipsmodule/rand/urandom.c index fcc3dc09ef..a85d3fe8ed 100644 --- a/crypto/fipsmodule/rand/urandom.c +++ b/crypto/fipsmodule/rand/urandom.c @@ -71,7 +71,8 @@ #if defined(OPENSSL_FREEBSD) #define URANDOM_BLOCKS_FOR_ENTROPY -#if __FreeBSD__ >= 12 +#include +#if __FreeBSD_version >= 1200000 // getrandom is supported in FreeBSD 12 and up. #define FREEBSD_GETRANDOM #include