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>
This commit is contained in:
David Benjamin 2015-04-07 23:20:51 -04:00 committed by Adam Langley
parent f0ae170021
commit 2e749e8f61

View File

@ -152,6 +152,10 @@
#include <openssl/pem.h> #include <openssl/pem.h>
#include <openssl/x509.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. */ /* Some code expected to get the threading functions by including ssl.h. */
#include <openssl/thread.h> #include <openssl/thread.h>
@ -368,7 +372,6 @@ typedef struct OPENSSL_timeval_st {
long tv_usec; long tv_usec;
} OPENSSL_timeval; } OPENSSL_timeval;
#else #else
#include <sys/time.h>
typedef struct timeval OPENSSL_timeval; typedef struct timeval OPENSSL_timeval;
#endif #endif