From 2e749e8f61ff000828095765762289a45e1d4f4f Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Tue, 7 Apr 2015 23:20:51 -0400 Subject: [PATCH] Move the sys/time.h #include out of extern C. We shouldn't be wrapping system headers. Change-Id: I77498f4ec869797050b276eb764d892f73782f9f Reviewed-on: https://boringssl-review.googlesource.com/4282 Reviewed-by: Adam Langley --- include/openssl/ssl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index b374d1fe..6149d441 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -152,6 +152,10 @@ #include #include +#if !defined(OPENSSL_WINDOWS) +#include +#endif + /* Some code expected to get the threading functions by including ssl.h. */ #include @@ -368,7 +372,6 @@ typedef struct OPENSSL_timeval_st { long tv_usec; } OPENSSL_timeval; #else -#include typedef struct timeval OPENSSL_timeval; #endif