summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/quota/quota/fcntl.patch
blob: 27e60fd07d8dc7df15f0a89ebd91a1f311b0bbb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Include fcntl.h to pacify compiler errors on musl
like

error: unknown type name 'loff_t'
Cover rpc headers under proper conditional
Dont use __P its undefined

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>

ndex: quota-tools/quota.h
===================================================================
Index: quota-tools/quota.h
===================================================================
--- quota-tools.orig/quota.h
+++ quota-tools/quota.h
@@ -165,6 +165,6 @@ enum {
 	#endif
 #endif
 
-long quotactl __P((int, const char *, qid_t, caddr_t));
+long quotactl (int, const char *, qid_t, caddr_t);
 
 #endif /* _QUOTA_ */
Index: quota-tools/quotacheck.c
===================================================================
--- quota-tools.orig/quotacheck.c
+++ quota-tools/quotacheck.c
@@ -19,6 +19,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <errno.h>
+#include <fcntl.h>
 
 #include <sys/stat.h>
 #include <sys/types.h>
Index: quota-tools/quotaio.c
===================================================================
--- quota-tools.orig/quotaio.c
+++ quota-tools/quotaio.c
@@ -12,6 +12,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/file.h>
Index: quota-tools/dqblk_v2.h
===================================================================
--- quota-tools.orig/dqblk_v2.h
+++ quota-tools/dqblk_v2.h
@@ -7,6 +7,7 @@
 #ifndef GUARD_DQBLK_V2_H
 #define GUARD_DQBLK_V2_H
 
+#include <fcntl.h>
 #include <sys/types.h>
 #include "quota_tree.h"
 
Index: quota-tools/quotaops.c
===================================================================
--- quota-tools.orig/quotaops.c
+++ quota-tools/quotaops.c
@@ -34,7 +34,9 @@
 
 #include "config.h"
 
+#if defined(RPC)
 #include <rpc/rpc.h>
+#endif
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/file.h>
Index: quota-tools/rquota_client.c
===================================================================
--- quota-tools.orig/rquota_client.c
+++ quota-tools/rquota_client.c
@@ -19,7 +19,9 @@
 
 #include "config.h"
 
+#if defined(RPC)
 #include <rpc/rpc.h>
+#endif
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/stat.h>
@@ -35,7 +37,9 @@
 #include <stdint.h>
 
 #include "mntopt.h"
+#if defined(RPC)
 #include "rquota.h"
+#endif
 #include "common.h"
 #include "quotaio.h"
 #include "quotasys.h"
Index: quota-tools/setquota.c
===================================================================
--- quota-tools.orig/setquota.c
+++ quota-tools/setquota.c
@@ -7,7 +7,9 @@
 
 #include "config.h"
 
+#if defined(RPC)
 #include <rpc/rpc.h>
+#endif
 #include <sys/types.h>
 #include <errno.h>
 #include <stdio.h>