From 8d58f0171e743ebda2b676016800f0a4cd66a1da Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 24 Jun 2018 13:24:27 +0200 Subject: [PATCH] rand/rand_unix.c: mask getentropy ELF detection on HP-UX. Unlike other ELF systems, HP-UX run-time linker fails to detect symbol availability through weak declaration. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/6583) --- crypto/rand/rand_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index fafa359d49..a545e08d8c 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -240,7 +240,7 @@ int syscall_random(void *buf, size_t buflen) * - Linux since 3.17 with glibc 2.25 * - FreeBSD since 12.0 (1200061) */ -# if defined(__GNUC__) && __GNUC__>=2 && defined(__ELF__) +# if defined(__GNUC__) && __GNUC__>=2 && defined(__ELF__) && !defined(__hpux) extern int getentropy(void *bufer, size_t length) __attribute__((weak)); if (getentropy != NULL) -- 2.25.1