From: nia Date: Thu, 30 Apr 2020 13:41:07 +0000 (+0100) Subject: rand_unix.c: Include correct headers for sysctl() on NetBSD X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=78ed03986f39a5b85ebf04e5e97eaa9602dee0a3;p=oweals%2Fopenssl.git rand_unix.c: Include correct headers for sysctl() on NetBSD This allows sysctl(KERN_ARND) to be detected properly. Reviewed-by: Paul Dale Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/11689) (cherry picked from commit e2e4b784e65eaafb133a7db3d344446c43112d41) --- 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 # endif #endif -#if defined(__FreeBSD__) && !defined(OPENSSL_SYS_UEFI) +#if (defined(__FreeBSD__) || defined(__NetBSD__)) && !defined(OPENSSL_SYS_UEFI) # include # include # include #endif -#if defined(__OpenBSD__) || defined(__NetBSD__) +#if defined(__OpenBSD__) # include #endif