lzmq: fix compilation with GCC14
authorRosen Penev <rosenp@gmail.com>
Mon, 10 Jun 2024 01:31:28 +0000 (18:31 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 10 Jun 2024 20:47:21 +0000 (13:47 -0700)
Missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lang/lzmq/Makefile
lang/lzmq/patches/010-gcc14.patch [new file with mode: 0644]

index 210b88ed3c715f2ac954a18e284c26833c34827e..f401af3ec892eb411836edb5205f29fc0bedaf70 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lzmq
 PKG_VERSION:=0.4.4
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
 PKG_LICENSE:=MIT
 
diff --git a/lang/lzmq/patches/010-gcc14.patch b/lang/lzmq/patches/010-gcc14.patch
new file mode 100644 (file)
index 0000000..8be0b65
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/src/lzmq.c
++++ b/src/lzmq.c
+@@ -23,6 +23,7 @@
+ #include <assert.h>\r
+ #include "zsupport.h"\r
+ #include <memory.h>\r
++#include <stdlib.h>\r
\r
+ #define LUAZMQ_MODULE_NAME      "lzmq"\r
+ #define LUAZMQ_MODULE_LICENSE   "MIT"\r