From 7c84c63b0658cd9e5fa605d2835c630b1a4e1883 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Fri, 26 Jan 2024 21:54:04 +0100 Subject: mail-filter/libspf2-1.2.11: fix for C99 and configure warning Closes: https://bugs.gentoo.org/885055 Signed-off-by: Fabian Groffen --- mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mail-filter/libspf2/files') diff --git a/mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch b/mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch index 279089b6cb97..7815d3a07ca2 100644 --- a/mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch +++ b/mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch @@ -5,6 +5,8 @@ Subject: [PATCH] provide dn_skipname Modified for Gentoo to include dn_expand fix keep dn_expand available, for musl and glibc-2.34 +also added declaration fix for dn_expand for glibc because we +cannot include resolv.h, which defines it --- configure.ac | 2 +- @@ -131,10 +133,13 @@ index 0000000..88d48b5 --- a/src/libreplace/arpa_nameser.h +++ b/src/libreplace/arpa_nameser.h -@@ -59,7 +59,7 @@ +@@ -59,7 +59,10 @@ # define __P(x) x #endif ++#if defined(HAVE_DN_EXPAND) ++int dn_expand __P((const u_char *, const u_char *, const u_char *, char *, int)); ++#endif -#if defined( HAVE_ARPA_NAMESER_H ) && defined( HAVE_NS_TYPE ) +#if !defined(HAVE_DN_EXPAND) && defined( HAVE_ARPA_NAMESER_H ) && defined( HAVE_NS_TYPE ) #define dn_expand __dn_expand -- cgit v1.2.3-65-gdbad