diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-15 06:52:13 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-15 06:52:13 +0000 |
commit | 9f7759b3b1be5a3bc7794010a8ebf9334f017d2f (patch) | |
tree | fa4e093c6694ec0590cbbd9a7b86c1edddc43d72 /net-misc/bsdwhois/files | |
parent | ac35def7deb4a1eecfad26f0eb5907170b2ee5d7 (diff) |
gentoo auto-resync : 15:11:2022 - 06:52:13
Diffstat (limited to 'net-misc/bsdwhois/files')
-rw-r--r-- | net-misc/bsdwhois/files/bsdwhois-1.43.2.1-clang16-build.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-clang16-build.patch b/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-clang16-build.patch new file mode 100644 index 000000000000..7f7052322b0b --- /dev/null +++ b/net-misc/bsdwhois/files/bsdwhois-1.43.2.1-clang16-build.patch @@ -0,0 +1,21 @@ +Clang16 will not allow implicit function declarations and implicit integers etc. +This patch overhauls the source code for modern C. + +Bug: https://bugs.gentoo.org/875029 + +Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> + +--- a/strnstr.c ++++ b/strnstr.c +@@ -46,10 +46,7 @@ static char sccsid[] = "@(#)strstr.c 8.1 (Berkeley) 6/4/93"; + * first slen characters of s. + */ + char * +-strnstr(s, find, slen) +- const char *s; +- const char *find; +- size_t slen; ++strnstr(const char *s, const char *find, size_t slen) + { + char c, sc; + size_t len; |