From 3e83e686ba2e21a2d7d991446bc6fedde5ff58c0 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 14 Feb 2002 15:37:38 +0000 Subject: Add the configuration target VxWorks. --- crypto/bio/bss_bio.c | 7 ++++++- crypto/bio/bss_log.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'crypto/bio') diff --git a/crypto/bio/bss_bio.c b/crypto/bio/bss_bio.c index f666c47f4e..1eeed9e7fe 100644 --- a/crypto/bio/bss_bio.c +++ b/crypto/bio/bss_bio.c @@ -23,6 +23,11 @@ #include #include "e_os.h" + +/* VxWorks defines SSIZE_MAX with an empty value causing compile errors */ +#if defined(OPENSSL_SYS_VSWORKS) +# undef SSIZE_MAX +#endif #ifndef SSIZE_MAX # define SSIZE_MAX INT_MAX #endif @@ -255,7 +260,7 @@ static ssize_t bio_nread(BIO *bio, char **buf, size_t num_) ssize_t num, available; if (num_ > SSIZE_MAX) - num = SSIZE_MAX; + num = SSIZE_MAX; else num = (ssize_t)num_; diff --git a/crypto/bio/bss_log.c b/crypto/bio/bss_log.c index e5954cd7f5..a39d95297c 100644 --- a/crypto/bio/bss_log.c +++ b/crypto/bio/bss_log.c @@ -77,7 +77,7 @@ # include #elif defined(__ultrix) # include -#elif !defined(MSDOS) && !defined(NO_SYSLOG) /* Unix */ +#elif !defined(MSDOS) && !defined(OPENSSL_SYS_VXWORKS) && !defined(NO_SYSLOG) /* Unix */ # include #endif -- cgit v1.2.3