forked from pool/daemonize
- added patches
eaf4746d47
+ daemonize-gcc15.patch
OBS-URL: https://build.opensuse.org/request/show/1291431
OBS-URL: https://build.opensuse.org/package/show/utilities/daemonize?expand=0&rev=7
15 lines
353 B
Diff
15 lines
353 B
Diff
diff --git a/getopt.c b/getopt.c
|
|
index 3f37c55..f298da7 100644
|
|
--- a/getopt.c
|
|
+++ b/getopt.c
|
|
@@ -45,7 +45,7 @@
|
|
#include <string.h>
|
|
|
|
#define ERR(s, c) if(x_opterr){\
|
|
- extern int write();\
|
|
+ extern int write(int, const void *, unsigned);\
|
|
char errbuf[2];\
|
|
errbuf[0] = c; errbuf[1] = '\n';\
|
|
(void) write(2, argv[0], (unsigned)strlen(argv[0]));\
|
|
|