Include winsock2.h before openssl/x509v3.h
[mech_eap.git] / 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>