1Include 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 12diff --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 { 17 #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_ */ 24diff --git a/quotacheck.c b/quotacheck.c 25index 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> 33 34 #include <sys/stat.h> 35 #include <sys/types.h> 36diff --git a/quotaio.c b/quotaio.c 37index 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> 48diff --git a/rquota_client.c b/rquota_client.c 49index a3a4ae3..0ffe7a9 100644 50--- a/rquota_client.c 51+++ b/rquota_client.c 52@@ -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" 72