From fc67d3052bac4dafd91242e39dd4ac1f8da3248c Mon Sep 17 00:00:00 2001 From: pho Date: Mon, 6 Jan 2020 12:04:12 +0000 Subject: [PATCH] Fix build on NetBSD 8.1 --- security/libssh/distinfo | 3 ++- security/libssh/patches/patch-tests_torture.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 security/libssh/patches/patch-tests_torture.c diff --git a/security/libssh/distinfo b/security/libssh/distinfo index 6515190e7319..95c4fe6ebdac 100644 --- a/security/libssh/distinfo +++ b/security/libssh/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.20 2019/12/31 12:27:03 wiz Exp $ +$NetBSD: distinfo,v 1.21 2020/01/06 12:04:12 pho Exp $ SHA1 (libssh-0.9.3.tar.xz) = 24bb9d6f53691236f34cc8e6fec86dd659aef757 RMD160 (libssh-0.9.3.tar.xz) = ef2f8e5564f7508db4829fe655644d959e35da5d SHA512 (libssh-0.9.3.tar.xz) = 6e59718565daeca6d224426cc1095a112deff9af8e0b021917e04f08bb7409263c35724de95f591f38e26f0fb3bbbbc69b679b6775edc21dec158d241b076c6f Size (libssh-0.9.3.tar.xz) = 500068 bytes SHA1 (patch-CompilerChecks.cmake) = 77b93572006132c557cb9a57698e8455f7874073 +SHA1 (patch-tests_torture.c) = 2c70e9d827f15ec36a62e0d0f5dd98774f24f79e diff --git a/security/libssh/patches/patch-tests_torture.c b/security/libssh/patches/patch-tests_torture.c new file mode 100644 index 000000000000..f086676fcf2d --- /dev/null +++ b/security/libssh/patches/patch-tests_torture.c @@ -0,0 +1,14 @@ +$NetBSD: patch-tests_torture.c,v 1.1 2020/01/06 12:04:13 pho Exp $ + +Fix build on NetBSD 8.1: Don't try to use PATH_MAX without #include + +--- tests/torture.c.orig 2020-01-06 12:01:16.440174806 +0000 ++++ tests/torture.c +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + #ifndef _WIN32 + # include