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:
parent
f0ae170021
commit
2e749e8f61
@ -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 @@ typedef struct OPENSSL_timeval_st {
|
||||
long tv_usec;
|
||||
} OPENSSL_timeval;
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
typedef struct timeval OPENSSL_timeval;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user