Skip to content

Commit 00b10e5

Browse files
committed
Fixed undeclared identifier 'SIZE_MAX'
Ticket: ENT-13259 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 06f82e3 commit 00b10e5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff -ruN openssl-3.0.18/crypto/evp/bio_ok.c openssl-3.0.18-modified/crypto/evp/bio_ok.c
2+
--- openssl-3.0.18/crypto/evp/bio_ok.c 2025-09-30 15:12:07.000000000 +0200
3+
+++ openssl-3.0.18-modified/crypto/evp/bio_ok.c 2025-10-08 18:21:10.258670389 +0200
4+
@@ -78,6 +78,7 @@
5+
#include <openssl/rand.h>
6+
#include "internal/endian.h"
7+
#include "crypto/evp.h"
8+
+#include "internal/numbers.h" /* includes SIZE_MAX */
9+
10+
static int ok_write(BIO *h, const char *buf, int num);
11+
static int ok_read(BIO *h, char *buf, int size);

deps-packaging/openssl/hpux/build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ OSD=${BUILD_ROOT}/cfbuild-openssl-devel${PREFIX}
1010
# To pick up libgcc_s.so.1, which is apparently not in dyld path.
1111
export LD_LIBRARY_PATH=$PREFIX/lib
1212

13+
$PATCH -p1 < SIZE_MAX-undeclared.patch
14+
1315
# Configure
1416

1517
$PERL ./Configure hpux-ia64-gcc $(<config_flags_$ROLE.txt) \

0 commit comments

Comments
 (0)