diff options
author | Andy Polyakov <appro@openssl.org> | 2005-05-18 08:16:46 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-05-18 08:16:46 +0000 |
commit | 51ff6bde38e51e5822233e59a703b27efd369410 (patch) | |
tree | 8bf9c6b7b04fb3794cad8fd599aa9511ce62a644 /crypto/bio | |
parent | 28e4fe34e49f2233fa7784ca5b7ba42839892d99 (diff) |
Engage Applink in mingw. Note that application-side module is not
compiled into *our* aplpications. That's because mingw is always
consistent with itself. Having library-side code linked into .dll
makes it possible to deploy the .dll with user-code compiled with
another compiler [which is pretty much the whole point behind Applink].
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bss_file.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index c97ac14651..dd17802f8f 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -236,12 +236,17 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) b->shutdown=(int)num&BIO_CLOSE; b->ptr=ptr; b->init=1; -#if BIO_FLAGS_UPLINK!=0 && defined(_IOB_ENTRIES) +#if BIO_FLAGS_UPLINK!=0 +#if defined(__MINGW32__) && defined(__MSVCRT__) && !defined(_IOB_ENTRIES) +#define _IOB_ENTRIES 20 +#endif +#if defined(_IOB_ENTRIES) /* Safety net to catch purely internal BIO_set_fp calls */ if ((size_t)ptr >= (size_t)stdin && (size_t)ptr < (size_t)(stdin+_IOB_ENTRIES)) BIO_clear_flags(b,BIO_FLAGS_UPLINK); #endif +#endif #ifdef UP_fsetmode if (b->flags&BIO_FLAGS_UPLINK) UP_fsetmode(b->ptr,num&BIO_FP_TEXT?'t':'b'); |