diff options
author | Andy Polyakov <appro@openssl.org> | 2005-11-03 16:43:53 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-11-03 16:43:53 +0000 |
commit | 474b8a9716b184176e385d7c31f83ba78da5a21b (patch) | |
tree | 7d98f30e89720f446b444cfcc7595c5f2dd8613d /crypto/bio | |
parent | 53261831f150268f901069f1340791f19ece2fe3 (diff) |
Make cygwin work in directories mounted with 'text' attribute.
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bss_file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index ad4b301388..93727685cf 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -279,8 +279,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) _setmode(fd,_O_BINARY); #elif defined(OPENSSL_SYS_NETWARE) && defined(NETWARE_CLIB) int fd = fileno((FILE*)ptr); - /* Under CLib there are differences in file modes - */ + /* Under CLib there are differences in file modes */ if (num & BIO_FP_TEXT) _setmode(fd,O_TEXT); else @@ -301,7 +300,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) else _setmode(fd,_O_BINARY); } -#elif defined(OPENSSL_SYS_OS2) +#elif defined(OPENSSL_SYS_OS2) || defined(OPENSSL_SYS_WIN32_CYGWIN) int fd = fileno((FILE*)ptr); if (num & BIO_FP_TEXT) setmode(fd, O_TEXT); |