summaryrefslogtreecommitdiff
path: root/net-irc/dccserver/files/dccserver-0.5-include-bsd-string-header.patch
diff options
context:
space:
mode:
authorPascal Jäger <pascal.jaeger@leimstift.de>2022-11-29 19:58:53 +0100
committerSam James <sam@gentoo.org>2022-12-06 09:23:09 +0000
commitdb259dcd0de3671f15a6b2be6d3d4b07599e567d (patch)
tree01b9a3da4423ae54b7f1a24c98dc7e35acd1d474 /net-irc/dccserver/files/dccserver-0.5-include-bsd-string-header.patch
parent77fba59fa7b88ad8a598383401a99920ac1da18e (diff)
downloadgentoo-db259dcd0de3671f15a6b2be6d3d4b07599e567d.tar.gz
gentoo-db259dcd0de3671f15a6b2be6d3d4b07599e567d.tar.bz2
gentoo-db259dcd0de3671f15a6b2be6d3d4b07599e567d.zip
net-irc/dccserver: fix build for clang16
Closes: https://bugs.gentoo.org/875026 Closes: https://bugs.gentoo.org/861377 Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> Closes: https://github.com/gentoo/gentoo/pull/28475 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-irc/dccserver/files/dccserver-0.5-include-bsd-string-header.patch')
-rw-r--r--net-irc/dccserver/files/dccserver-0.5-include-bsd-string-header.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-irc/dccserver/files/dccserver-0.5-include-bsd-string-header.patch b/net-irc/dccserver/files/dccserver-0.5-include-bsd-string-header.patch
new file mode 100644
index 000000000000..16474b64b82a
--- /dev/null
+++ b/net-irc/dccserver/files/dccserver-0.5-include-bsd-string-header.patch
@@ -0,0 +1,19 @@
+This uses strlcpy() from bsd/string.h. On non BSD system those headers are to find under
+/usr/include/bsd/. See also man libbsd.
+
+Bug: https://bugs.gentoo.org/875026
+Bug: https://bugs.gentoo.org/861377
+
+Pascal Jäger <pascal.jaeger@leimstift.de> (2022-11-29)
+
+--- a/lib/dcc.c
++++ b/lib/dcc.c
+@@ -37,7 +37,7 @@
+ #endif /* HAVE_ERR_H */
+ #include <errno.h>
+ #include <stdlib.h>
+-#include <string.h>
++#include <bsd/string.h>
+
+ #include "dcc.h"
+ #include "io.h"