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 e0380a3..419d37c 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 */