From effaf4dee90beff07bb40f21d81352304a5e8152 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Sun, 31 Jan 2016 13:08:23 -0500 Subject: Use NON_EMPTY_TRANSLATION_UNIT, consistently. This also closes RT 4123 Reviewed-by: Richard Levitte --- crypto/rand/rand_egd.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'crypto/rand/rand_egd.c') diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c index f0d2e55a48..6f13717b5a 100644 --- a/crypto/rand/rand_egd.c +++ b/crypto/rand/rand_egd.c @@ -53,9 +53,14 @@ * */ -#include -#include -#include +#include +#ifdef OPENSSL_NO_EGD +NON_EMPTY_TRANSLATION_UNIT +#else + +# include +# include +# include /*- * Query the EGD . @@ -94,8 +99,6 @@ * RAND_egd() is a wrapper for RAND_egd_bytes() with numbytes=255. */ -#ifndef OPENSSL_NO_EGD - # if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_VOS) || defined(OPENSSL_SYS_UEFI) int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) { @@ -288,8 +291,4 @@ int RAND_egd(const char *path) # endif -#else /* OPENSSL_NO_EGD */ -# if PEDANTIC -static void *dummy = &dummy; -# endif #endif -- cgit v1.2.3