Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: include <limits.h> for definition of ULONG_MAX
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 ‘<limits.h>’; this is probably fixable by adding ‘#include <limits.h>’ Signed-off-by: Alan Coopersmith <[email protected]>
- Loading branch information