Cygwin fix-up for shared build.
authorAndy Polyakov <appro@openssl.org>
Sun, 1 Aug 2004 21:24:34 +0000 (21:24 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 1 Aug 2004 21:24:34 +0000 (21:24 +0000)
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 */