blob: 51a770ce6e34cfbc2930aea819d3dcf65ef675fb [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Include fcntl.h to pacify compiler errors on musl
2like
3
4error: unknown type name 'loff_t'
5Cover rpc headers under proper conditional
6Dont use __P its undefined
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
Brad Bishopc342db32019-05-15 21:57:59 -040012diff --git a/quota.h b/quota.h
13index 4c21411..d20c217 100644
14--- a/quota.h
15+++ b/quota.h
16@@ -182,6 +182,6 @@ enum {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017 #endif
18 #endif
19
20-long quotactl __P((int, const char *, qid_t, caddr_t));
21+long quotactl (int, const char *, qid_t, caddr_t);
22
23 #endif /* _QUOTA_ */
Brad Bishopc342db32019-05-15 21:57:59 -040024diff --git a/quotacheck.c b/quotacheck.c
25index 2cdf475..07c18a7 100644
26--- a/quotacheck.c
27+++ b/quotacheck.c
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028@@ -19,6 +19,7 @@
29 #include <unistd.h>
30 #include <stdlib.h>
31 #include <errno.h>
32+#include <fcntl.h>
33
34 #include <sys/stat.h>
35 #include <sys/types.h>
Brad Bishopc342db32019-05-15 21:57:59 -040036diff --git a/quotaio.c b/quotaio.c
37index 94ae458..d57fc1a 100644
38--- a/quotaio.c
39+++ b/quotaio.c
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040@@ -12,6 +12,7 @@
41 #include <string.h>
42 #include <unistd.h>
43 #include <stdlib.h>
44+#include <fcntl.h>
45 #include <sys/types.h>
46 #include <sys/stat.h>
47 #include <sys/file.h>
Brad Bishopc342db32019-05-15 21:57:59 -040048diff --git a/rquota_client.c b/rquota_client.c
49index a3a4ae3..0ffe7a9 100644
50--- a/rquota_client.c
51+++ b/rquota_client.c
Patrick Williamsc124f4f2015-09-15 14:41:29 -050052@@ -19,7 +19,9 @@
53
54 #include "config.h"
55
56+#if defined(RPC)
57 #include <rpc/rpc.h>
58+#endif
59 #include <sys/types.h>
60 #include <sys/param.h>
61 #include <sys/stat.h>
62@@ -35,7 +37,9 @@
63 #include <stdint.h>
64
65 #include "mntopt.h"
66+#if defined(RPC)
67 #include "rquota.h"
68+#endif
69 #include "common.h"
70 #include "quotaio.h"
71 #include "quotasys.h"