commit:     1e79c53b7795d088a824049c3f692bac3bb0a0fb
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 22 11:56:34 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Aug 22 12:00:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e79c53b

net-misc/wget-1.21.1: fix build on darwin

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 net-misc/wget/wget-1.21.1.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net-misc/wget/wget-1.21.1.ebuild b/net-misc/wget/wget-1.21.1.ebuild
index 2d15744b57f..dfd4fce484b 100644
--- a/net-misc/wget/wget-1.21.1.ebuild
+++ b/net-misc/wget/wget-1.21.1.ebuild
@@ -75,6 +75,12 @@ src_configure() {
        # the included gnutls -- force ioctl.h to include this header
        [[ ${CHOST} == *-solaris* ]] && append-cppflags -DBSD_COMP=1
 
+       if [[ ${CHOST} == *-darwin* ]] ; then
+               # 
https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00050.html
+               # 
https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00051.html
+               append-cppflags '-D__nonnull\(X\)='
+       fi
+
        if use static ; then
                append-ldflags -static
                tc-export PKG_CONFIG

Reply via email to