diff --git a/gen_wasm_host_api.py b/gen_wasm_host_api.py index 5183a23..9d11634 100755 --- a/gen_wasm_host_api.py +++ b/gen_wasm_host_api.py @@ -43,7 +43,7 @@ #ifndef NGX_HTTP_WASM_API_DEF_H #define NGX_HTTP_WASM_API_DEF_H - +#include #include @@ -59,9 +59,10 @@ #define $vm_api_header_name +#include +#include #include $vm_header -#include #include "proxy_wasm/proxy_wasm_types.h" #include "http/ngx_http_wasm_api_def.h" diff --git a/src/http/ngx_http_wasm_api.c b/src/http/ngx_http_wasm_api.c index 75bd66e..99bf9f4 100644 --- a/src/http/ngx_http_wasm_api.c +++ b/src/http/ngx_http_wasm_api.c @@ -15,6 +15,11 @@ * */ #define _GNU_SOURCE /* for RTLD_DEFAULT */ + +#include +#include + + #include #include "vm/vm.h" #include "ngx_http_wasm_api.h" diff --git a/src/http/ngx_http_wasm_api.h b/src/http/ngx_http_wasm_api.h index 56657b9..9d5e626 100644 --- a/src/http/ngx_http_wasm_api.h +++ b/src/http/ngx_http_wasm_api.h @@ -17,7 +17,7 @@ #ifndef NGX_HTTP_WASM_API_H #define NGX_HTTP_WASM_API_H - +#include #include diff --git a/src/http/ngx_http_wasm_api_def.h b/src/http/ngx_http_wasm_api_def.h index f97c02b..bc85c67 100644 --- a/src/http/ngx_http_wasm_api_def.h +++ b/src/http/ngx_http_wasm_api_def.h @@ -19,7 +19,7 @@ #ifndef NGX_HTTP_WASM_API_DEF_H #define NGX_HTTP_WASM_API_DEF_H - +#include #include diff --git a/src/http/ngx_http_wasm_api_wasmedge.h b/src/http/ngx_http_wasm_api_wasmedge.h index 03a34a7..4dce226 100644 --- a/src/http/ngx_http_wasm_api_wasmedge.h +++ b/src/http/ngx_http_wasm_api_wasmedge.h @@ -20,9 +20,10 @@ #define NGX_HTTP_WASM_API_WASMEDGE_H +#include +#include #include #include -#include #include "proxy_wasm/proxy_wasm_types.h" #include "http/ngx_http_wasm_api_def.h" diff --git a/src/http/ngx_http_wasm_api_wasmtime.h b/src/http/ngx_http_wasm_api_wasmtime.h index 7eb9495..b553485 100644 --- a/src/http/ngx_http_wasm_api_wasmtime.h +++ b/src/http/ngx_http_wasm_api_wasmtime.h @@ -20,9 +20,10 @@ #define NGX_HTTP_WASM_API_WASMTIME_H +#include +#include #include #include -#include #include "proxy_wasm/proxy_wasm_types.h" #include "http/ngx_http_wasm_api_def.h" diff --git a/src/http/ngx_http_wasm_call.h b/src/http/ngx_http_wasm_call.h index ffe9e69..60671df 100644 --- a/src/http/ngx_http_wasm_call.h +++ b/src/http/ngx_http_wasm_call.h @@ -17,7 +17,8 @@ #ifndef NGX_HTTP_WASM_CALL_H #define NGX_HTTP_WASM_CALL_H - +#include +#include #include diff --git a/src/http/ngx_http_wasm_ctx.h b/src/http/ngx_http_wasm_ctx.h index 54d2b7c..d412d13 100644 --- a/src/http/ngx_http_wasm_ctx.h +++ b/src/http/ngx_http_wasm_ctx.h @@ -17,7 +17,7 @@ #ifndef NGX_HTTP_WASM_CTX_H #define NGX_HTTP_WASM_CTX_H - +#include #include #include "ngx_http_wasm_state.h" #include "proxy_wasm/proxy_wasm_types.h" diff --git a/src/http/ngx_http_wasm_module.h b/src/http/ngx_http_wasm_module.h index 26c9a6a..e59ca47 100644 --- a/src/http/ngx_http_wasm_module.h +++ b/src/http/ngx_http_wasm_module.h @@ -17,7 +17,7 @@ #ifndef NGX_HTTP_WASM_MODULE_H #define NGX_HTTP_WASM_MODULE_H - +#include #include diff --git a/src/http/ngx_http_wasm_state.h b/src/http/ngx_http_wasm_state.h index e6bbf1e..1390b35 100644 --- a/src/http/ngx_http_wasm_state.h +++ b/src/http/ngx_http_wasm_state.h @@ -17,7 +17,7 @@ #ifndef NGX_HTTP_WASM_STATE_H #define NGX_HTTP_WASM_STATE_H - +#include #include #include diff --git a/src/proxy_wasm/proxy_wasm_map.h b/src/proxy_wasm/proxy_wasm_map.h index ccca738..b4e561f 100644 --- a/src/proxy_wasm/proxy_wasm_map.h +++ b/src/proxy_wasm/proxy_wasm_map.h @@ -16,8 +16,10 @@ */ #ifndef PROXY_WASM_MAP_H #define PROXY_WASM_MAP_H -#include + +#include #include +#include typedef enum { diff --git a/src/proxy_wasm/proxy_wasm_memory.h b/src/proxy_wasm/proxy_wasm_memory.h index 574f2b7..123105e 100644 --- a/src/proxy_wasm/proxy_wasm_memory.h +++ b/src/proxy_wasm/proxy_wasm_memory.h @@ -16,6 +16,7 @@ */ #ifndef PROXY_WASM_MEMORY_H #define PROXY_WASM_MEMORY_H +#include #include diff --git a/src/proxy_wasm/proxy_wasm_types.h b/src/proxy_wasm/proxy_wasm_types.h index 9222426..8946a1d 100644 --- a/src/proxy_wasm/proxy_wasm_types.h +++ b/src/proxy_wasm/proxy_wasm_types.h @@ -17,7 +17,7 @@ #ifndef PROXY_WASM_TYPES_H #define PROXY_WASM_TYPES_H - +#include #include #include diff --git a/src/vm/vm.h b/src/vm/vm.h index 789684b..5c12838 100644 --- a/src/vm/vm.h +++ b/src/vm/vm.h @@ -18,8 +18,9 @@ #define VM_H -#include +#include #include +#include #define NGX_WASM_PARAM_VOID 1 diff --git a/src/vm/wasmtime.c b/src/vm/wasmtime.c index 08aa364..cbf41ea 100644 --- a/src/vm/wasmtime.c +++ b/src/vm/wasmtime.c @@ -14,6 +14,9 @@ * limitations under the License. * */ + +#include +#include #include #include #include