diff options
author | nia <nia@netbsd.org> | 2020-04-30 14:41:07 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-05-04 09:04:40 +0100 |
commit | 78ed03986f39a5b85ebf04e5e97eaa9602dee0a3 (patch) | |
tree | 2ed6606306d216ac4d86f159a755723345d054c4 /crypto/rand | |
parent | 1632a6854cc594901018f9490426b26e893aae43 (diff) | |
download | openssl-new-78ed03986f39a5b85ebf04e5e97eaa9602dee0a3.tar.gz |
rand_unix.c: Include correct headers for sysctl() on NetBSD
This allows sysctl(KERN_ARND) to be detected properly.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11689)
(cherry picked from commit e2e4b784e65eaafb133a7db3d344446c43112d41)
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/rand_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index fe457cab4a..6d30d35b90 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -26,12 +26,12 @@ # include <sys/utsname.h> # endif #endif -#if defined(__FreeBSD__) && !defined(OPENSSL_SYS_UEFI) +#if (defined(__FreeBSD__) || defined(__NetBSD__)) && !defined(OPENSSL_SYS_UEFI) # include <sys/types.h> # include <sys/sysctl.h> # include <sys/param.h> #endif -#if defined(__OpenBSD__) || defined(__NetBSD__) +#if defined(__OpenBSD__) # include <sys/param.h> #endif |