Add missing include of sys/time.h
authorKurt Roeckx <kurt@roeckx.be>
Tue, 30 Dec 2014 16:14:49 +0000 (17:14 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Wed, 31 Dec 2014 10:13:48 +0000 (11:13 +0100)
gettimeofday was undefined

Reviewed-by: Geoff Thorpe <geoff@openssl.org>
crypto/bio/bss_dgram.c

index 88ee559d98979b83cb34dd70c4072036ba198e74..d45dd954af5155945c4f9e4aea8faf8a26a5a62c 100644 (file)
@@ -66,6 +66,9 @@
 #include <openssl/bio.h>
 #ifndef OPENSSL_NO_DGRAM
 
+#if !(defined(_WIN32) || defined(OPENSSL_SYS_VMS))
+# include <sys/time.h>
+#endif
 #if defined(OPENSSL_SYS_VMS)
 #include <sys/timeb.h>
 #endif