From: Dr. Stephen Henson Date: Mon, 29 Sep 2003 17:10:01 +0000 (+0000) Subject: Fix to make it compile under Win32. X-Git-Tag: OpenSSL_0_9_7c~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c93f908f7fc7aa50958b088516e8f28986040d44;p=oweals%2Fopenssl.git Fix to make it compile under Win32. --- diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index 1f9bd3312a..6904b5c081 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -215,9 +215,9 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) b->init=1; #if defined(OPENSSL_SYS_WINDOWS) if (num & BIO_FP_TEXT) - _setmode(fd,_O_TEXT); + _setmode(fileno((FILE *)ptr),_O_TEXT); else - _setmode(fd,_O_BINARY); + _setmode(fileno((FILE *)ptr),_O_BINARY); #elif defined(OPENSSL_SYS_MSDOS) { int fd = fileno((FILE*)ptr);