summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-24 02:56:01 +0100
committerSam James <sam@gentoo.org>2022-06-24 04:13:48 +0100
commit3690d57e4ec3c647da56c2cdd563c530f5d03eb1 (patch)
treea902a05101eb9e9a8e436043a7d47ab1690ee1e5 /net-misc/bsdwhois
parentapp-admin/selint: drop 1.1.0 (diff)
downloadgentoo-3690d57e4ec3c647da56c2cdd563c530f5d03eb1.tar.gz
gentoo-3690d57e4ec3c647da56c2cdd563c530f5d03eb1.tar.bz2
gentoo-3690d57e4ec3c647da56c2cdd563c530f5d03eb1.zip
net-misc/bsdwhois: fix build on musl
Thanks-to: CFuga <cfuga@cfuga.mx> Closes: https://bugs.gentoo.org/828901 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/bsdwhois')
-rw-r--r--net-misc/bsdwhois/files/bsdwhois-1.43.2.1-musl-cdefs.patch16
1 files changed, 13 insertions, 3 deletions
diff --git a/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-musl-cdefs.patch b/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-musl-cdefs.patch
index 2eec53c2645c..a27f2d5a1665 100644
--- a/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-musl-cdefs.patch
+++ b/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-musl-cdefs.patch
@@ -1,8 +1,17 @@
-diff --git a/whois.c b/whois.c
-index 329559a..d2f6561 100644
+https://bugs.gentoo.org/828901
+--- a/strnstr.c
++++ b/strnstr.c
+@@ -38,7 +38,6 @@
+ #if defined(LIBC_SCCS) && !defined(lint)
+ static char sccsid[] = "@(#)strstr.c 8.1 (Berkeley) 6/4/93";
+ #endif /* LIBC_SCCS and not lint */
+-#include <sys/cdefs.h>
+
+ #include <string.h>
+
--- a/whois.c
+++ b/whois.c
-@@ -43,7 +43,6 @@ static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
+@@ -43,7 +43,6 @@
#endif /* not lint */
#endif
@@ -10,3 +19,4 @@ index 329559a..d2f6561 100644
#ifdef __FBSDID
__FBSDID("$FreeBSD: /repoman/r/ncvs/src/usr.bin/whois/whois.c,v 1.43.2.1 2006/01/31 18:11:21 jhay Exp $");
#endif
+