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