addrwatch: Add missing limits header for PATH_MAX 10657/head
authorRosen Penev <rosenp@gmail.com>
Thu, 28 Nov 2019 07:33:24 +0000 (23:33 -0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 28 Nov 2019 07:38:35 +0000 (23:38 -0800)
Fixes compilation on musl.

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

index c396990558787cc6cb8a0956ac7ac99eafa4c355..03602e2f5fe4517900b78df6cf119fb10fd59708 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=addrwatch
 PKG_VERSION:=1.0.1
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/fln/addrwatch/tar.gz/v$(PKG_VERSION)?
diff --git a/net/addrwatch/patches/010-limits.patch b/net/addrwatch/patches/010-limits.patch
new file mode 100644 (file)
index 0000000..be8fa72
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/src/addrwatch.c
++++ b/src/addrwatch.c
+@@ -4,6 +4,7 @@
+ #include <signal.h>
+ #include <strings.h>
+ #include <unistd.h>
++#include <limits.h>
+ #include <pwd.h>
+ #include <grp.h>
+ #include <argp.h>