diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bss_bio.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_bio.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bss_bio.c b/src/lib/libcrypto/bio/bss_bio.c index 78c6ab4fdd..a5da473031 100644 --- a/src/lib/libcrypto/bio/bss_bio.c +++ b/src/lib/libcrypto/bio/bss_bio.c | |||
@@ -22,7 +22,12 @@ | |||
22 | #include <openssl/err.h> | 22 | #include <openssl/err.h> |
23 | #include <openssl/crypto.h> | 23 | #include <openssl/crypto.h> |
24 | 24 | ||
25 | #include "openssl/e_os.h" | 25 | #include "e_os.h" |
26 | |||
27 | /* VxWorks defines SSIZE_MAX with an empty value causing compile errors */ | ||
28 | #if defined(OPENSSL_SYS_VSWORKS) | ||
29 | # undef SSIZE_MAX | ||
30 | #endif | ||
26 | #ifndef SSIZE_MAX | 31 | #ifndef SSIZE_MAX |
27 | # define SSIZE_MAX INT_MAX | 32 | # define SSIZE_MAX INT_MAX |
28 | #endif | 33 | #endif |
@@ -474,7 +479,8 @@ static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr) | |||
474 | break; | 479 | break; |
475 | 480 | ||
476 | case BIO_C_GET_WRITE_BUF_SIZE: | 481 | case BIO_C_GET_WRITE_BUF_SIZE: |
477 | num = (long) b->size; | 482 | ret = (long) b->size; |
483 | break; | ||
478 | 484 | ||
479 | case BIO_C_MAKE_BIO_PAIR: | 485 | case BIO_C_MAKE_BIO_PAIR: |
480 | { | 486 | { |