Page MenuHomeFreeBSD

D45995.diff
No OneTemporary

D45995.diff

diff --git a/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c b/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
--- a/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
+++ b/crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
@@ -28,7 +28,7 @@
# include <sys/utsname.h>
# endif
#endif
-#if (defined(__FreeBSD__) || defined(__NetBSD__)) && !defined(OPENSSL_SYS_UEFI)
+#if defined(__NetBSD__)
# include <sys/types.h>
# include <sys/sysctl.h>
# include <sys/param.h>
@@ -36,7 +36,8 @@
#if defined(__OpenBSD__)
# include <sys/param.h>
#endif
-#if defined(__DragonFly__)
+#if (defined(__DragonFly__) || defined(__FreeBSD__)) \
+ && !defined(OPENSSL_SYS_UEFI)
# include <sys/param.h>
# include <sys/random.h>
#endif
@@ -212,7 +213,7 @@
# error "librandom not (yet) supported"
# endif
-# if (defined(__FreeBSD__) || defined(__NetBSD__)) && defined(KERN_ARND)
+# if defined(__NetBSD__) && defined(KERN_ARND)
/*
* sysctl_random(): Use sysctl() to read a random number from the kernel
* Returns the number of bytes returned in buf on success, -1 on failure.

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 7:30 PM (21 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14519295
Default Alt Text
D45995.diff (1 KB)

Event Timeline