From c78e268845e980e9e7ed1583c0581615d52580d5 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Sat, 26 Aug 2023 02:25:52 +0100 Subject: libunit-wasm: Include strings.h in the right file When I added the luw_http_hdr_get_value() function I needed to include strings.h, unfortunately I added it to unit-wasm.h instead of libunit-wasm.c This had the undesirable effect of requiring the wasi-sysroot when building the rust stuff for generating the libunit-wasm rust bindings. By including strings.h in the right file we get rid of that requirement which a subsequent commit will take care of. Signed-off-by: Andrew Clayton --- src/c/include/unit/unit-wasm.h | 1 - src/c/libunit-wasm.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/c/include/unit/unit-wasm.h b/src/c/include/unit/unit-wasm.h index a20ebed..8d91094 100644 --- a/src/c/include/unit/unit-wasm.h +++ b/src/c/include/unit/unit-wasm.h @@ -11,7 +11,6 @@ #include #include #include -#include #ifdef __cplusplus extern "C" { diff --git a/src/c/libunit-wasm.c b/src/c/libunit-wasm.c index 1860fe3..39cda22 100644 --- a/src/c/libunit-wasm.c +++ b/src/c/libunit-wasm.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include "unit/unit-wasm.h" -- cgit