diff options
| author | Rosen Penev <rosenp@gmail.com> | 2020-02-03 21:05:52 -0800 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2020-02-03 21:07:36 -0800 |
| commit | 118d129d6afebfde9474256d577dfdcb5c35f144 (patch) | |
| tree | af55cecd244d1e725a6b48acf66ac7050ad65627 /net/libreswan | |
| parent | e9f439c07a7919514a32920b375596146e04d4d6 (diff) | |
libreswan: fix compilation with musl
Added missing limits header. This is normally included in fortify-headers,
which I have disabled locally.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/libreswan')
| -rw-r--r-- | net/libreswan/Makefile | 2 | ||||
| -rw-r--r-- | net/libreswan/patches/020-limits.patch | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/net/libreswan/Makefile b/net/libreswan/Makefile index 76cde7b87..988e6c038 100644 --- a/net/libreswan/Makefile +++ b/net/libreswan/Makefile @@ -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 index 000000000..5a5635698 --- /dev/null +++ b/net/libreswan/patches/020-limits.patch @@ -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" |
