diff --git a/Sources/CNIOLLHTTP/include/c_nio_llhttp.h b/Sources/CNIOLLHTTP/include/c_nio_llhttp.h index 8b2c38d44..fedea319d 100644 --- a/Sources/CNIOLLHTTP/include/c_nio_llhttp.h +++ b/Sources/CNIOLLHTTP/include/c_nio_llhttp.h @@ -553,10 +553,10 @@ typedef enum llhttp_status llhttp_status_t; #ifndef INCLUDE_LLHTTP_API_H_ #define INCLUDE_LLHTTP_API_H_ +#include #ifdef __cplusplus extern "C" { #endif -#include #if defined(__wasm__) #define LLHTTP_EXPORT __attribute__((visibility("default"))) diff --git a/Sources/CNIOLLHTTP/update_and_patch_llhttp.sh b/Sources/CNIOLLHTTP/update_and_patch_llhttp.sh index 757a69c71..a232a515f 100755 --- a/Sources/CNIOLLHTTP/update_and_patch_llhttp.sh +++ b/Sources/CNIOLLHTTP/update_and_patch_llhttp.sh @@ -142,6 +142,25 @@ index 071e828c6..1e5d99cec 100644 struct c_nio_llhttp__internal_s { EOF +patch -p1 -V none << 'EOF' +diff --git a/include/c_nio_llhttp.h b/include/c_nio_llhttp.h +index 1e5d99ce..39cf110a 100644 +--- a/include/c_nio_llhttp.h ++++ b/include/c_nio_llhttp.h +@@ -553,10 +553,10 @@ typedef enum llhttp_status llhttp_status_t; + + #ifndef INCLUDE_LLHTTP_API_H_ + #define INCLUDE_LLHTTP_API_H_ ++#include + #ifdef __cplusplus + extern "C" { + #endif +-#include + + #if defined(__wasm__) + #define LLHTTP_EXPORT __attribute__((visibility("default"))) +EOF + rm -rf "$compiletmp" rm -rf "$tmpdir"