mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-02 07:53:43 +00:00
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:
co-authored by
Claude Opus 4.6
parent
995aa0d39e
commit
ccd6ab4b39
@@ -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
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user