recipes: networking/wget: upgraded to version 1.20.1
[dragora.git] / patches / quota / fcntl.patch
blob2d37971321499a477aaeee3381590e32024d394b
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 ndex: quota-tools/quota.h
13 ===================================================================
14 Index: quota-tools/quota.h
15 ===================================================================
16 --- quota-tools.orig/quota.h
17 +++ quota-tools/quota.h
18 @@ -165,6 +165,6 @@ enum {
19 #endif
20 #endif
22 -long quotactl __P((int, const char *, qid_t, caddr_t));
23 +long quotactl (int, const char *, qid_t, caddr_t);
25 #endif /* _QUOTA_ */
26 Index: quota-tools/quotacheck.c
27 ===================================================================
28 --- quota-tools.orig/quotacheck.c
29 +++ quota-tools/quotacheck.c
30 @@ -19,6 +19,7 @@
31 #include <unistd.h>
32 #include <stdlib.h>
33 #include <errno.h>
34 +#include <fcntl.h>
36 #include <sys/stat.h>
37 #include <sys/types.h>
38 Index: quota-tools/quotaio.c
39 ===================================================================
40 --- quota-tools.orig/quotaio.c
41 +++ quota-tools/quotaio.c
42 @@ -12,6 +12,7 @@
43 #include <string.h>
44 #include <unistd.h>
45 #include <stdlib.h>
46 +#include <fcntl.h>
47 #include <sys/types.h>
48 #include <sys/stat.h>
49 #include <sys/file.h>
50 Index: quota-tools/dqblk_v2.h
51 ===================================================================
52 --- quota-tools.orig/dqblk_v2.h
53 +++ quota-tools/dqblk_v2.h
54 @@ -7,6 +7,7 @@
55 #ifndef GUARD_DQBLK_V2_H
56 #define GUARD_DQBLK_V2_H
58 +#include <fcntl.h>
59 #include <sys/types.h>
60 #include "quota_tree.h"
62 Index: quota-tools/rquota_client.c
63 ===================================================================
64 --- quota-tools.orig/rquota_client.c
65 +++ quota-tools/rquota_client.c
66 @@ -19,7 +19,9 @@
68 #include "config.h"
70 +#if defined(RPC)
71 #include <rpc/rpc.h>
72 +#endif
73 #include <sys/types.h>
74 #include <sys/param.h>
75 #include <sys/stat.h>
76 @@ -35,7 +37,9 @@
77 #include <stdint.h>
79 #include "mntopt.h"
80 +#if defined(RPC)
81 #include "rquota.h"
82 +#endif
83 #include "common.h"
84 #include "quotaio.h"
85 #include "quotasys.h"