xref: /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/daemontools/daemontools/warnings.patch (revision 520786cc6f5e5078825972134b1ec6fd81a6022a)
1Upstream-Status: Pending
2
3Fixup misc warnings
4
5Patch by RiverRat
6
7http://bugs.gentoo.org/124487
8
9--- a/src/chkshsgr.c
10+++ b/src/chkshsgr.c
11@@ -1,10 +1,13 @@
12 /* Public domain. */
13
14+#include <sys/types.h>
15+#include <stdlib.h>
16+#include <grp.h>
17 #include <unistd.h>
18
19 int main()
20 {
21-  short x[4];
22+  gid_t x[4];
23
24   x[0] = x[1] = 0;
25   if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
26--- a/src/matchtest.c
27+++ b/src/matchtest.c
28@@ -1,3 +1,4 @@
29+#include <unistd.h>
30 #include "match.h"
31 #include "buffer.h"
32 #include "str.h"
33--- a/src/multilog.c
34+++ b/src/multilog.c
35@@ -1,3 +1,4 @@
36+#include <stdio.h>
37 #include <unistd.h>
38 #include <sys/types.h>
39 #include <sys/stat.h>
40--- a/src/prot.c
41+++ b/src/prot.c
42@@ -1,5 +1,8 @@
43 /* Public domain. */
44
45+#include <sys/types.h>
46+#include <unistd.h>
47+#include <grp.h>
48 #include "hasshsgr.h"
49 #include "prot.h"
50
51--- a/src/seek_set.c
52+++ b/src/seek_set.c
53@@ -1,6 +1,7 @@
54 /* Public domain. */
55
56 #include <sys/types.h>
57+#include <unistd.h>
58 #include "seek.h"
59
60 #define SET 0 /* sigh */
61--- a/src/supervise.c
62+++ b/src/supervise.c
63@@ -1,3 +1,4 @@
64+#include <stdio.h>
65 #include <unistd.h>
66 #include <sys/types.h>
67 #include <sys/stat.h>
68--- a/src/pathexec_run.c
69+++ b/src/pathexec_run.c
70@@ -1,5 +1,6 @@
71 /* Public domain. */
72
73+#include <unistd.h>
74 #include "error.h"
75 #include "stralloc.h"
76 #include "str.h"
77