Fix test build on Linux: add stdint.h and link libm

- test_ppbloom.c: add missing #include <stdint.h> for uint8_t
- test_json: link against libm for pow() used in json.c

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Max Lv
2026-02-07 16:50:55 +08:00
co-authored by Claude Opus 4.6
parent 995aa0d39e
commit ccd6ab4b39
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -3,6 +3,7 @@
#endif
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>