diff options
author | Richard Levitte <levitte@openssl.org> | 2001-07-01 22:39:46 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-07-01 22:39:46 +0000 |
commit | dc01b6b1f20e9fa8a975f5f28e55fdaa75fe37e6 (patch) | |
tree | be53597dae0d499197a282d9d0b4558b01c251c0 /crypto/bio | |
parent | b7a26e6dafdbf97513e968a45757a4d4e9843ba2 (diff) |
Changes to have OpenSSL compile on OS/2.
Contributed by "Brian Havard" <brianh@kheldar.apana.org.au>
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bss_file.c | 5 | ||||
-rw-r--r-- | crypto/bio/bss_log.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index f31e0a50ee..0dee7fa348 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -210,6 +210,11 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) _setmode(fileno((FILE *)ptr),_O_TEXT); else _setmode(fileno((FILE *)ptr),_O_BINARY); +#elif defined(OPENSSL_SYS_OS2) + if (num & BIO_FP_TEXT) + setmode(fileno((FILE *)ptr), O_TEXT); + else + setmode(fileno((FILE *)ptr), O_BINARY); #endif break; case BIO_C_SET_FILENAME: diff --git a/crypto/bio/bss_log.c b/crypto/bio/bss_log.c index 13fb517c18..bdcbf30480 100644 --- a/crypto/bio/bss_log.c +++ b/crypto/bio/bss_log.c @@ -77,7 +77,7 @@ # include <starlet.h> #elif defined(__ultrix) # include <sys/syslog.h> -#elif !defined(MSDOS) /* Unix */ +#elif !defined(MSDOS) && !defined(NO_SYSLOG) /* Unix */ # include <syslog.h> #endif |