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 884bbd34f1358974a2840408559438f0bf29caf1..a3d8da90165a2e9e0ab719acf4533ab988584ec4 100644 (file)
 
 #include <openssl/buffer.h>
 #include <openssl/pqueue.h>
 
 #include <openssl/buffer.h>
 #include <openssl/pqueue.h>
+#ifdef OPENSSL_SYS_WIN32
+/* Needed for struct timeval */
+#include <winsock.h>
+#endif
 
 #ifdef  __cplusplus
 extern "C" {
 
 #ifdef  __cplusplus
 extern "C" {