Skip to content

Commit

Permalink
Migrate from __FreeBSD__ to __FreeBSD_version to check for supported …
Browse files Browse the repository at this point in the history
…getrandom support on FreeBSD
  • Loading branch information
andrewhop committed Apr 29, 2024
1 parent 388cbe7 commit 228ebbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crypto/fipsmodule/rand/urandom.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@

#if defined(OPENSSL_FREEBSD)
#define URANDOM_BLOCKS_FOR_ENTROPY
#if __FreeBSD__ >= 12
#include <sys/param.h>
#if __FreeBSD_version >= 1200000
// getrandom is supported in FreeBSD 12 and up.
#define FREEBSD_GETRANDOM
#include <sys/random.h>
Expand Down

0 comments on commit 228ebbd

Please sign in to comment.