From: Dr. Stephen Henson Date: Thu, 1 Sep 2011 15:02:53 +0000 (+0000) Subject: PR: 2340 X-Git-Tag: OpenSSL_1_0_0e~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=64763ce09b9dc831762ad1ba1b4ad6881a8192bd;p=oweals%2Fopenssl.git PR: 2340 Submitted by: "Mauro H. Leggieri" Reviewed by: steve Stop warnings if OPENSSL_NO_DGRAM is defined. --- diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index 22af508719..71ebe987b6 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -57,7 +57,6 @@ * */ -#ifndef OPENSSL_NO_DGRAM #include #include @@ -65,6 +64,7 @@ #include "cryptlib.h" #include +#ifndef OPENSSL_NO_DGRAM #if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) #include @@ -815,7 +815,6 @@ int BIO_dgram_non_fatal_error(int err) } return(0); } -#endif static void get_current_time(struct timeval *t) { @@ -833,3 +832,5 @@ static void get_current_time(struct timeval *t) gettimeofday(t, NULL); #endif } + +#endif