From c241017dcd1ed1e019140f377a2529c207b60655 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Wed, 24 Oct 2012 13:56:41 -0700 Subject: [PATCH] [master] fix fedora 17 ecdsa compilation problem --- lib/dns/openssl_link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/openssl_link.c b/lib/dns/openssl_link.c index d97e447001..56465aa006 100644 --- a/lib/dns/openssl_link.c +++ b/lib/dns/openssl_link.c @@ -290,7 +290,7 @@ static isc_result_t toresult(isc_result_t fallback) { isc_result_t result = fallback; unsigned long err = ERR_get_error(); -#ifdef ERR_R_ECDSA_LIB +#ifdef HAVE_OPENSSL_ECDSA int lib = ERR_GET_LIB(err); #endif int reason = ERR_GET_REASON(err); @@ -304,7 +304,7 @@ toresult(isc_result_t fallback) { result = ISC_R_NOMEMORY; break; default: -#ifdef ERR_R_ECDSA_LIB +#ifdef HAVE_OPENSSL_ECDSA if (lib == ERR_R_ECDSA_LIB && reason == ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED) { result = ISC_R_NOENTROPY;