gentoo-ebuilds/sys-apps/daemonize/files/daemonize-1.7.8-c23.patch
Sam James 59f6dfec38
sys-apps/daemonize: fix build w/ c23
Thanks to Robert Schultz.

Closes: https://bugs.gentoo.org/880439
Signed-off-by: Sam James <sam@gentoo.org>
2025-06-15 01:04:09 +01:00

14 lines
373 B
Diff

https://bugs.gentoo.org/880439#c10
--- a/getopt.c
+++ b/getopt.c
@@ -43,9 +43,9 @@
#include <stdio.h>
/* We're ANSI now; we're guaranteed to have strchr(). */
#include <string.h>
+#include <unistd.h>
#define ERR(s, c) if(x_opterr){\
- extern int write();\
char errbuf[2];\
errbuf[0] = c; errbuf[1] = '\n';\
(void) write(2, argv[0], (unsigned)strlen(argv[0]));\