1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1096498
--- daemonize-1.7.8.orig/getopt.c
+++ daemonize-1.7.8/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]));\
|