From d650d3276f15236da91f3477c32c6b4995807e06 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Wed, 8 Mar 2023 18:35:37 -0300 Subject: [PATCH] luamodules: Fix implicit declaration warning for strncasecmp Signed-off-by: Gustavo Henrique Nihei --- ...cit-declaration-warning-for-strncase.patch | 26 +++++++++++++++++++ interpreters/luamodules/cjson/Makefile | 1 + 2 files changed, 27 insertions(+) create mode 100644 interpreters/luamodules/cjson/0002-bugfix-Fix-implicit-declaration-warning-for-strncase.patch diff --git a/interpreters/luamodules/cjson/0002-bugfix-Fix-implicit-declaration-warning-for-strncase.patch b/interpreters/luamodules/cjson/0002-bugfix-Fix-implicit-declaration-warning-for-strncase.patch new file mode 100644 index 000000000..6beef060b --- /dev/null +++ b/interpreters/luamodules/cjson/0002-bugfix-Fix-implicit-declaration-warning-for-strncase.patch @@ -0,0 +1,26 @@ +From e6e8fbe68a95bf6fca463781dbc22e631c4b7b7a Mon Sep 17 00:00:00 2001 +From: Gustavo Henrique Nihei +Date: Wed, 8 Mar 2023 17:18:02 -0300 +Subject: [PATCH] bugfix: Fix implicit declaration warning for strncasecmp + function + +Signed-off-by: Gustavo Henrique Nihei +--- + lua_cjson.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lua_cjson.c b/lua_cjson.c +index 42672de..f443626 100644 +--- a/lua_cjson.c ++++ b/lua_cjson.c +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +2.37.2 + diff --git a/interpreters/luamodules/cjson/Makefile b/interpreters/luamodules/cjson/Makefile index c5a8fb800..2fd741157 100644 --- a/interpreters/luamodules/cjson/Makefile +++ b/interpreters/luamodules/cjson/Makefile @@ -39,6 +39,7 @@ $(LUACJSON_UNPACK): $(LUACJSON_TARBALL) $(Q) tar -xvzf $(LUACJSON_TARBALL) $(Q) mv lua-cjson-$(LUACJSON_VERSION) $(LUACJSON_UNPACK) $(Q) patch -d $(LUACJSON_UNPACK) -p1 < 0001-fix-compile-warnings.patch + $(Q) patch -d $(LUACJSON_UNPACK) -p1 < 0002-bugfix-Fix-implicit-declaration-warning-for-strncase.patch $(LUACJSON_UNPACK)/.patch: $(LUACJSON_UNPACK) touch $(LUACJSON_UNPACK)/.patch