aboutsummaryrefslogtreecommitdiffstats
path: root/community/libreswan/fix-host-name-max.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-08-14 12:01:10 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-14 12:01:10 +0000
commit85807c16d3a444643a18b5f24610d88ebfdb1db7 (patch)
tree07e60c72b42240f34c3614971a32bde599a57b1b /community/libreswan/fix-host-name-max.patch
parentcf50c7124965a0311c14713750f0e99310b7e493 (diff)
downloadaports-85807c16d3a444643a18b5f24610d88ebfdb1db7.tar.bz2
aports-85807c16d3a444643a18b5f24610d88ebfdb1db7.tar.xz
community/libreswan: fix HOST_NAME_MAX
fix build failure on ppc64le
Diffstat (limited to 'community/libreswan/fix-host-name-max.patch')
-rw-r--r--community/libreswan/fix-host-name-max.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/libreswan/fix-host-name-max.patch b/community/libreswan/fix-host-name-max.patch
new file mode 100644
index 0000000000..13d0fd0d2c
--- /dev/null
+++ b/community/libreswan/fix-host-name-max.patch
@@ -0,0 +1,11 @@
+diff -ru libreswan-3.21.orig/programs/pluto/ikev2_ipseckey.c libreswan-3.21/programs/pluto/ikev2_ipseckey.c
+--- libreswan-3.21.orig/programs/pluto/ikev2_ipseckey.c 2017-08-09 20:47:34.000000000 +0000
++++ libreswan-3.21/programs/pluto/ikev2_ipseckey.c 2017-08-14 12:00:26.380840562 +0000
+@@ -23,6 +23,7 @@
+ #include <stddef.h>
+ #include <stdlib.h>
+ #include <unistd.h>
++#include <limits.h>
+ #include <errno.h>
+ #include <arpa/inet.h> /* for inet_ntop */
+ #include <arpa/nameser.h>