gentoo/net-irc/dccserver/files/dccserver-0.5-include-bsd-string-header.patch
Pascal Jäger db259dcd0d
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>
2022-12-06 09:23:09 +00:00

20 lines
459 B
Diff

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"