From f0c41ea048d93556e61c420557ae1386528c097d Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 11 Oct 2024 13:12:54 -0700 Subject: [PATCH] rpc: include for definition of ULONG_MAX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes build failure on Solaris 11.4 with gcc 14.2: ../p11-kit/rpc-server.c: In function ‘proto_read_attribute_buffer_array’: ../p11-kit/rpc-server.c:289:46: error: ‘ULONG_MAX’ undeclared (first use in this function) 289 | if ((n_array != 0 && ULONG_MAX / n_array < sizeof (CK_ATTRIBUTE)) || | ^~~~~~~~~ ../p11-kit/rpc-server.c:64:1: note: ‘ULONG_MAX’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ Signed-off-by: Alan Coopersmith --- p11-kit/rpc-server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/p11-kit/rpc-server.c b/p11-kit/rpc-server.c index 3d695a00..ef3b3836 100644 --- a/p11-kit/rpc-server.c +++ b/p11-kit/rpc-server.c @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include