]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/cryptlib.c
Cygwin fix-up for shared build.
[thirdparty/openssl.git] / crypto / cryptlib.c
index e0380a38f4c35104fc05ace3499f30e10051eaea..419d37ca5dd660ffa036ed0bd99bbca308f23bdf 100644 (file)
@@ -572,6 +572,10 @@ void OPENSSL_cpuid_setup() {}
 #endif
 
 #if (defined(_WIN32) || defined(__CYGWIN__)) && defined(_DLL)
+#ifdef __CYGWIN__
+/* pick DLL_[PROCESS|THREAD]_[ATTACH|DETACH] definitions */
+#include <windows.h>
+#endif
 
 /* All we really need to do is remove the 'error' state when a thread
  * detaches */