From: Matt Caswell Date: Thu, 30 Apr 2015 08:40:55 +0000 (+0100) Subject: Remove redundant includes from dtls1.h X-Git-Tag: OpenSSL_1_1_0-pre1~1249 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=fb456902758d1c9a36ebb1327e81e98e53c26df6 Remove redundant includes from dtls1.h There were a set of includes in dtls1.h which are now redundant due to the libssl opaque work. This commit removes those includes, which also has the effect of resolving one issue preventing building on windows (i.e. the include of winsock.h) Reviewed-by: Andy Polyakov --- diff --git a/include/openssl/dtls1.h b/include/openssl/dtls1.h index 542ae04627..f214296d4b 100644 --- a/include/openssl/dtls1.h +++ b/include/openssl/dtls1.h @@ -60,25 +60,6 @@ #ifndef HEADER_DTLS1_H # define HEADER_DTLS1_H -# include -# include -# ifdef OPENSSL_SYS_VMS -# include -# include -# endif -# ifdef OPENSSL_SYS_WIN32 -/* Needed for struct timeval */ -# include -# elif defined(OPENSSL_SYS_NETWARE) && !defined(_WINSOCK2API_) -# include -# else -# if defined(OPENSSL_SYS_VXWORKS) -# include -# else -# include -# endif -# endif - #ifdef __cplusplus extern "C" { #endif diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index a1d203223c..6946b32dea 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -64,6 +64,12 @@ #if defined(OPENSSL_SYS_VMS) # include +#elif defined(OPENSSL_SYS_NETWARE) && !defined(_WINSOCK2API_) +# include +#elif defined(OPENSSL_SYS_VXWORKS) +# include +#elif !defined(OPENSSL_SYS_WIN32) +# include #endif static void get_current_time(struct timeval *t); diff --git a/ssl/record/record.h b/ssl/record/record.h index 29c74d7cb9..6bccb71d83 100644 --- a/ssl/record/record.h +++ b/ssl/record/record.h @@ -109,6 +109,8 @@ * */ +#include + /***************************************************************************** * * * These structures should be considered PRIVATE to the record layer. No *