diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-09-01 15:03:10 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-09-01 15:03:10 +0000 |
commit | 0d1e3623635fd336724343a1b68f09f9ffe04686 (patch) | |
tree | caae30e7e7c337162821873fb17e1f114ac162cf | |
parent | a0bf2c86abcbb1e6659816b9ca97ca81c154eb41 (diff) |
PR: 2340
Submitted by: "Mauro H. Leggieri" <mxmauro@caiman.com.ar>
Reviewed by: steve
Stop warnings if OPENSSL_NO_DGRAM is defined.
-rw-r--r-- | crypto/bio/bss_dgram.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index e6845eb87d..bfbcf9b5f8 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -57,7 +57,6 @@ * */ -#ifndef OPENSSL_NO_DGRAM #include <stdio.h> #include <errno.h> @@ -65,6 +64,7 @@ #include "cryptlib.h" #include <openssl/bio.h> +#ifndef OPENSSL_NO_DGRAM #if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) #include <sys/timeb.h> @@ -724,7 +724,6 @@ int BIO_dgram_non_fatal_error(int err) } return(0); } -#endif static void get_current_time(struct timeval *t) { @@ -742,3 +741,5 @@ static void get_current_time(struct timeval *t) gettimeofday(t, NULL); #endif } + +#endif |