fcntl.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. ndex: quota-tools/quota.h
  9. ===================================================================
  10. Index: quota-tools/quota.h
  11. ===================================================================
  12. --- quota-tools.orig/quota.h
  13. +++ quota-tools/quota.h
  14. @@ -165,6 +165,6 @@ enum {
  15. #endif
  16. #endif
  17. -long quotactl __P((int, const char *, qid_t, caddr_t));
  18. +long quotactl (int, const char *, qid_t, caddr_t);
  19. #endif /* _QUOTA_ */
  20. Index: quota-tools/quotacheck.c
  21. ===================================================================
  22. --- quota-tools.orig/quotacheck.c
  23. +++ quota-tools/quotacheck.c
  24. @@ -19,6 +19,7 @@
  25. #include <unistd.h>
  26. #include <stdlib.h>
  27. #include <errno.h>
  28. +#include <fcntl.h>
  29. #include <sys/stat.h>
  30. #include <sys/types.h>
  31. Index: quota-tools/quotaio.c
  32. ===================================================================
  33. --- quota-tools.orig/quotaio.c
  34. +++ quota-tools/quotaio.c
  35. @@ -12,6 +12,7 @@
  36. #include <string.h>
  37. #include <unistd.h>
  38. #include <stdlib.h>
  39. +#include <fcntl.h>
  40. #include <sys/types.h>
  41. #include <sys/stat.h>
  42. #include <sys/file.h>
  43. Index: quota-tools/dqblk_v2.h
  44. ===================================================================
  45. --- quota-tools.orig/dqblk_v2.h
  46. +++ quota-tools/dqblk_v2.h
  47. @@ -7,6 +7,7 @@
  48. #ifndef GUARD_DQBLK_V2_H
  49. #define GUARD_DQBLK_V2_H
  50. +#include <fcntl.h>
  51. #include <sys/types.h>
  52. #include "quota_tree.h"
  53. Index: quota-tools/rquota_client.c
  54. ===================================================================
  55. --- quota-tools.orig/rquota_client.c
  56. +++ quota-tools/rquota_client.c
  57. @@ -19,7 +19,9 @@
  58. #include "config.h"
  59. +#if defined(RPC)
  60. #include <rpc/rpc.h>
  61. +#endif
  62. #include <sys/types.h>
  63. #include <sys/param.h>
  64. #include <sys/stat.h>
  65. @@ -35,7 +37,9 @@
  66. #include <stdint.h>
  67. #include "mntopt.h"
  68. +#if defined(RPC)
  69. #include "rquota.h"
  70. +#endif
  71. #include "common.h"
  72. #include "quotaio.h"
  73. #include "quotasys.h"