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 <agl@google.com>
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index b374d1f..6149d44 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -152,6 +152,10 @@
#include <openssl/pem.h>
#include <openssl/x509.h>
+#if !defined(OPENSSL_WINDOWS)
+#include <sys/time.h>
+#endif
+
/* Some code expected to get the threading functions by including ssl.h. */
#include <openssl/thread.h>
@@ -368,7 +372,6 @@
long tv_usec;
} OPENSSL_timeval;
#else
-#include <sys/time.h>
typedef struct timeval OPENSSL_timeval;
#endif