fcntl.patch 1.5 KB

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