From d17b6e14521e9fa349210557380f44775c21f925 Mon Sep 17 00:00:00 2001 From: ndossche <7771979+ndossche@users.noreply.github.com> Date: Mon, 10 Aug 2026 00:37:45 +0200 Subject: [PATCH] fix: include climits to fix build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following build failure: ``` /home/nora/ncrypto/src/ncrypto.cpp: In function ‘bool ncrypto::CSPRNG(void*, size_t)’: /home/nora/ncrypto/src/ncrypto.cpp:602:23: error: ‘INT_MAX’ was not declared in this scope 602 | while (length > INT_MAX && 1 == RAND_bytes(buf, INT_MAX)) { | ^~~~~~~ ``` --- src/ncrypto.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ncrypto.cpp b/src/ncrypto.cpp index 51d45e7..af4d3d4 100644 --- a/src/ncrypto.cpp +++ b/src/ncrypto.cpp @@ -22,6 +22,7 @@ #endif #include #include +#include #include #include #include