File: gcc-15.patch

package info (click to toggle)
daemonize 1.7.8-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 456 kB
  • sloc: ansic: 1,106; sh: 152; makefile: 122
file content (17 lines) | stat: -rw-r--r-- 489 bytes parent folder | download
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]));\