Get struct timeval from sys/time.h.

The naclports patch switches sys/types.h to sys/time.h. Per
http://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/time.h.html
this is correct.

Change-Id: If6d56cb28fa16a1d8b4515a45532434f6c23a29d
Reviewed-on: https://boringssl-review.googlesource.com/6624
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
David Benjamin 2015-12-04 21:49:53 -05:00 committed by Adam Langley
parent 1246670caa
commit 0abd6f2eb6
2 changed files with 2 additions and 3 deletions

View File

@ -155,7 +155,7 @@
#include <winsock2.h>
#pragma warning(pop)
#else
#include <sys/types.h>
#include <sys/time.h>
#endif

View File

@ -20,7 +20,7 @@
#include <netinet/tcp.h>
#include <signal.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#else
#include <io.h>
@ -33,7 +33,6 @@
#endif
#include <string.h>
#include <sys/types.h>
#include <openssl/bio.h>
#include <openssl/buf.h>