libreswan: fix compilation with musl
authorRosen Penev <redacted>
Tue, 4 Feb 2020 05:05:52 +0000 (21:05 -0800)
committerRosen Penev <redacted>
Tue, 4 Feb 2020 05:07:36 +0000 (21:07 -0800)
Added missing limits header. This is normally included in fortify-headers,
which I have disabled locally.

Signed-off-by: Rosen Penev <redacted>
net/libreswan/Makefile
net/libreswan/patches/020-limits.patch [new file with mode: 0644]

index 76cde7b873fb082c2aeecd3de9c6637c7de44b69..988e6c0388b7fbde91bacdfd912b531d2df272e7 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libreswan
 PKG_VERSION:=3.29
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://download.libreswan.org/
diff --git a/net/libreswan/patches/020-limits.patch b/net/libreswan/patches/020-limits.patch
new file mode 100644 (file)
index 0000000..5a56356
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/programs/pluto/connections.c
++++ b/programs/pluto/connections.c
+@@ -34,6 +34,7 @@
+ #include <stdio.h>
+ #include <stddef.h>
+ #include <stdlib.h>
++#include <limits.h>
+ #include <unistd.h>
+ #include <netinet/in.h>
+ #include <sys/socket.h>
+--- a/programs/pluto/rcv_whack.c
++++ b/programs/pluto/rcv_whack.c
+@@ -36,6 +36,7 @@
+ #include <resolv.h>
+ #include <fcntl.h>
+ #include <unistd.h>           /* for gethostname() */
++#include <limits.h>
+ #include <libreswan.h>
+ #include "libreswan/pfkeyv2.h"
git clone https://git.99rst.org/PROJECT