From ccd6ab4b399b1ff1351fd695c3dd843ed4126df5 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sat, 7 Feb 2026 16:50:55 +0800 Subject: [PATCH] Fix test build on Linux: add stdint.h and link libm - test_ppbloom.c: add missing #include for uint8_t - test_json: link against libm for pow() used in json.c Co-Authored-By: Claude Opus 4.6 --- tests/CMakeLists.txt | 2 +- tests/test_ppbloom.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9a342613..962373b7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -34,7 +34,7 @@ ss_add_test(test_utils # test_json - standalone json parser ss_add_test(test_json "test_json.c;${PROJECT_SOURCE_DIR}/src/json.c" - "") + "m") # test_netutils - needs cork for ip address parsing set(TEST_NETUTILS_LIBS diff --git a/tests/test_ppbloom.c b/tests/test_ppbloom.c index 33755713..0ef17bbc 100644 --- a/tests/test_ppbloom.c +++ b/tests/test_ppbloom.c @@ -3,6 +3,7 @@ #endif #include +#include #include #include