diff options
author | Andy Polyakov <appro@openssl.org> | 2008-12-22 13:54:12 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-12-22 13:54:12 +0000 |
commit | e527201f6be3c295358bcc8b6bafec598f02dc97 (patch) | |
tree | e3b3ea15baf24f50465ad652b13f418dcc26464d /crypto/bio/bss_file.c | |
parent | 70531c147c2d38b03f109312a270ccc0af6cf8d6 (diff) |
This _WIN32-specific patch makes it possible to "wrap" OpenSSL in another
.DLL, in particular static build. The issue has been discussed in RT#1230
and later on openssl-dev, and mutually exclusive approaches were suggested.
This completes compromise solution suggested in RT#1230.
PR: 1230
Diffstat (limited to 'crypto/bio/bss_file.c')
-rw-r--r-- | crypto/bio/bss_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index 545c1b2bdd..480208a315 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -279,7 +279,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) #endif { #if defined(OPENSSL_SYS_WINDOWS) - int fd = fileno((FILE*)ptr); + int fd = _fileno((FILE*)ptr); if (num & BIO_FP_TEXT) _setmode(fd,_O_TEXT); else |