recipes: optimize lzlib and plzip
[dragora.git] / patches / quota / fcntl.patch
blob51a770ce6e34cfbc2930aea819d3dcf65ef675fb
1 Include fcntl.h to pacify compiler errors on musl
2 like
4 error: unknown type name 'loff_t'
5 Cover rpc headers under proper conditional
6 Dont use __P its undefined
8 Upstream-Status: Pending
10 Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 diff --git a/quota.h b/quota.h
13 index 4c21411..d20c217 100644
14 --- a/quota.h
15 +++ b/quota.h
16 @@ -182,6 +182,6 @@ enum {
17 #endif
18 #endif
20 -long quotactl __P((int, const char *, qid_t, caddr_t));
21 +long quotactl (int, const char *, qid_t, caddr_t);
23 #endif /* _QUOTA_ */
24 diff --git a/quotacheck.c b/quotacheck.c
25 index 2cdf475..07c18a7 100644
26 --- a/quotacheck.c
27 +++ b/quotacheck.c
28 @@ -19,6 +19,7 @@
29 #include <unistd.h>
30 #include <stdlib.h>
31 #include <errno.h>
32 +#include <fcntl.h>
34 #include <sys/stat.h>
35 #include <sys/types.h>
36 diff --git a/quotaio.c b/quotaio.c
37 index 94ae458..d57fc1a 100644
38 --- a/quotaio.c
39 +++ b/quotaio.c
40 @@ -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>
48 diff --git a/rquota_client.c b/rquota_client.c
49 index a3a4ae3..0ffe7a9 100644
50 --- a/rquota_client.c
51 +++ b/rquota_client.c
52 @@ -19,7 +19,9 @@
54 #include "config.h"
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>
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"