Include winsock2.h before openssl/x509v3.h
authorKevin Wasserman <krwasserman@painless-security.com>
Tue, 16 Dec 2014 19:16:03 +0000 (14:16 -0500)
committerKevin Wasserman <krwasserman@painless-security.com>
Tue, 16 Dec 2014 19:16:03 +0000 (14:16 -0500)
libeap/src/crypto/tls_openssl.c

index c0a40f9..dab489c 100644 (file)
 #define OPENSSL_NO_ENGINE
 #endif
 #endif
-
+#ifdef CONFIG_NATIVE_WINDOWS
+// This is necessary with openssl 1.0.1j before including x509v3.h
+#include <winsock2.h>
+#endif
 #include <openssl/ssl.h>
 #include <openssl/err.h>
 #include <openssl/pkcs12.h>