summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-08-26 02:25:52 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-08-26 02:29:26 +0100
commitc78e268845e980e9e7ed1583c0581615d52580d5 (patch)
treeb1c90928974e4ff86fd97b349f9c217345b6d557 /src
parent39aa9cc9e780a91f2ec27e43cb69cbef6f941067 (diff)
downloadunit-wasm-c78e268845e980e9e7ed1583c0581615d52580d5.tar.gz
unit-wasm-c78e268845e980e9e7ed1583c0581615d52580d5.tar.bz2
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 <a.clayton@nginx.com>
Diffstat (limited to 'src')
-rw-r--r--src/c/include/unit/unit-wasm.h1
-rw-r--r--src/c/libunit-wasm.c1
2 files changed, 1 insertions, 1 deletions
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 <stddef.h>
#include <stdint.h>
#include <stdbool.h>
-#include <strings.h>
#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 <stdbool.h>
#include <stdarg.h>
#include <string.h>
+#include <strings.h>
#include <errno.h>
#include "unit/unit-wasm.h"