summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-01-26 21:54:04 +0100
committerFabian Groffen <grobian@gentoo.org>2024-01-26 21:55:11 +0100
commit7c84c63b0658cd9e5fa605d2835c630b1a4e1883 (patch)
treeea710620b9ecb4efc2dd6b95a34e7d699f7df26a /mail-filter/libspf2/files
parentmedia-libs/harfbuzz: drop 8.2.0, 8.2.1, 8.2.2 (diff)
downloadgentoo-7c84c63b0658cd9e5fa605d2835c630b1a4e1883.tar.gz
gentoo-7c84c63b0658cd9e5fa605d2835c630b1a4e1883.tar.bz2
gentoo-7c84c63b0658cd9e5fa605d2835c630b1a4e1883.zip
mail-filter/libspf2-1.2.11: fix for C99 and configure warning
Closes: https://bugs.gentoo.org/885055 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'mail-filter/libspf2/files')
-rw-r--r--mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch7
1 files changed, 6 insertions, 1 deletions
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