Need definition of struct timeval for dtls1.h which broke WIN32 builds,
authorDr. Stephen Henson <steve@openssl.org>
Thu, 28 May 2009 20:53:16 +0000 (20:53 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 28 May 2009 20:53:16 +0000 (20:53 +0000)
so include winsock.h. (might be a cleaner way to do this...)

ssl/dtls1.h

index 884bbd3..a3d8da9 100644 (file)
 
 #include <openssl/buffer.h>
 #include <openssl/pqueue.h>
+#ifdef OPENSSL_SYS_WIN32
+/* Needed for struct timeval */
+#include <winsock.h>
+#endif
 
 #ifdef  __cplusplus
 extern "C" {