Make cygwin work in directories mounted with 'text' attribute.
[openssl.git] / e_os.h
diff --git a/e_os.h b/e_os.h
index 5068d1bd74feaa3acef2e73736937be7a97b8f7e..25e9e625f0640b22b2a383363cd06f049a4175b1 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -408,6 +408,10 @@ static unsigned int _strlen31(const char *str)
 #      define setvbuf(a, b, c, d) setbuffer((a), (b), (d))
        typedef unsigned long clock_t;
 #    endif
+#    ifdef OPENSSL_SYS_WIN32_CYGWIN
+#      include <io.h>
+#      include <fcntl.h>
+#    endif
 
 #    define OPENSSL_CONF       "openssl.cnf"
 #    define SSLEAY_CONF                OPENSSL_CONF