From 62fd61cc4deb6e3e1f77609bb441a45fa5fb44ad Mon Sep 17 00:00:00 2001 From: nia Date: Wed, 22 Sep 2021 06:56:10 +0000 Subject: ncmpc: avoid compilation problem on netbsd-8 --- audio/ncmpc/distinfo | 3 ++- audio/ncmpc/patches/patch-src_net_IPv6Address.hxx | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 audio/ncmpc/patches/patch-src_net_IPv6Address.hxx (limited to 'audio/ncmpc') diff --git a/audio/ncmpc/distinfo b/audio/ncmpc/distinfo index 7a2bc2d56b3..38a51d2308c 100644 --- a/audio/ncmpc/distinfo +++ b/audio/ncmpc/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.28 2021/03/06 15:29:59 wiz Exp $ +$NetBSD: distinfo,v 1.29 2021/09/22 06:56:10 nia Exp $ SHA1 (ncmpc-0.45.tar.xz) = e83ddb8f33f57ccff9261e05a5b1e66712bf8196 RMD160 (ncmpc-0.45.tar.xz) = c7246a55a329b23ee84c00fa737d494bac10ff19 @@ -8,3 +8,4 @@ SHA1 (patch-doc_meson.build) = 5052b9eef5057f50dcbcea8d5bb46027263edb46 SHA1 (patch-meson.build) = b16babee9f8e5799a600bf029b3bb606e32a265a SHA1 (patch-src_charset.cxx) = c8e06c936657819060c6539a3726e03fda7da54a SHA1 (patch-src_ncu.cxx) = 93ab60c406f8ef29fe23ffe6099d5825ee12bc13 +SHA1 (patch-src_net_IPv6Address.hxx) = 013994a6ef21532a6ebeaf6aeaa4a7ef83c0ce6b diff --git a/audio/ncmpc/patches/patch-src_net_IPv6Address.hxx b/audio/ncmpc/patches/patch-src_net_IPv6Address.hxx new file mode 100644 index 00000000000..796d52da3ca --- /dev/null +++ b/audio/ncmpc/patches/patch-src_net_IPv6Address.hxx @@ -0,0 +1,17 @@ +$NetBSD: patch-src_net_IPv6Address.hxx,v 1.1 2021/09/22 06:56:10 nia Exp $ + +Avoid a compilation problem on netbsd-8: + +../src/net/IPv6Address.hxx:192:10: error: 'ntohl' was not declared in this scope + return IN6_IS_ADDR_V4MAPPED(&address.sin6_addr); + +--- src/net/IPv6Address.hxx.orig 2021-02-12 09:53:25.000000000 +0000 ++++ src/net/IPv6Address.hxx +@@ -40,6 +40,7 @@ + #include + #include + #else ++#include + #include + #endif + -- cgit v1.2.3