diff options
author | Richard Levitte <levitte@openssl.org> | 2002-02-14 15:37:38 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-02-14 15:37:38 +0000 |
commit | 3e83e686ba2e21a2d7d991446bc6fedde5ff58c0 (patch) | |
tree | d8330c1735352c6b85a98a49ef79c97dbd096290 /crypto/bio/bss_bio.c | |
parent | 8f06b003736c957c6e693d3b5dd1393f91a530cd (diff) |
Add the configuration target VxWorks.
Diffstat (limited to 'crypto/bio/bss_bio.c')
-rw-r--r-- | crypto/bio/bss_bio.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <openssl/crypto.h> #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_; |