提交 74e056ed 编写于 作者: D Dr. Stephen Henson

PR: 2340

Submitted by: "Mauro H. Leggieri" <mxmauro@caiman.com.ar>
Reviewed by: steve

Stop warnings if OPENSSL_NO_DGRAM is defined.
上级 ff723104
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
* *
*/ */
#ifndef OPENSSL_NO_DGRAM
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
...@@ -65,6 +64,7 @@ ...@@ -65,6 +64,7 @@
#include "cryptlib.h" #include "cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#ifndef OPENSSL_NO_DGRAM
#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) #if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS)
#include <sys/timeb.h> #include <sys/timeb.h>
...@@ -815,7 +815,6 @@ int BIO_dgram_non_fatal_error(int err) ...@@ -815,7 +815,6 @@ int BIO_dgram_non_fatal_error(int err)
} }
return(0); return(0);
} }
#endif
static void get_current_time(struct timeval *t) static void get_current_time(struct timeval *t)
{ {
...@@ -833,3 +832,5 @@ static void get_current_time(struct timeval *t) ...@@ -833,3 +832,5 @@ static void get_current_time(struct timeval *t)
gettimeofday(t, NULL); gettimeofday(t, NULL);
#endif #endif
} }
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册