This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit d650d3276f15236da91f3477c32c6b4995807e06
Author: Gustavo Henrique Nihei <gustavo.ni...@espressif.com>
AuthorDate: Wed Mar 8 18:35:37 2023 -0300

    luamodules: Fix implicit declaration warning for strncasecmp
    
    Signed-off-by: Gustavo Henrique Nihei <gustavo.ni...@espressif.com>
---
 ...implicit-declaration-warning-for-strncase.patch | 26 ++++++++++++++++++++++
 interpreters/luamodules/cjson/Makefile             |  1 +
 2 files changed, 27 insertions(+)

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 <gustavo.ni...@espressif.com>
+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 <gustavo.ni...@espressif.com>
+---
+ 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 <assert.h>
+ #include <stdint.h>
+ #include <string.h>
++#include <strings.h>
+ #include <math.h>
+ #include <limits.h>
+ #include <lua.h>
+-- 
+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

Reply via email to