0001-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch 1.0 KB

1234567891011121314151617181920212223242526
  1. From e6f8e571c2014602d9edd68e1e58d38fed59c2b4 Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@uclibc-ng.org>
  3. Date: Sun, 16 Oct 2016 17:33:23 +0200
  4. Subject: [PATCH] uClibc-ng since 1.0.18 has sys/quota.h synced with GNU libc
  5. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
  6. ---
  7. libtransmission/platform-quota.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/libtransmission/platform-quota.c b/libtransmission/platform-quota.c
  10. index 58c518a..e14ec1b 100644
  11. --- a/libtransmission/platform-quota.c
  12. +++ b/libtransmission/platform-quota.c
  13. @@ -284,7 +284,7 @@ getquota (const char * device)
  14. spaceused = (int64_t) dq.dqb_curblocks >> 1;
  15. #elif defined(__APPLE__)
  16. spaceused = (int64_t) dq.dqb_curbytes;
  17. -#elif defined(__UCLIBC__)
  18. +#elif defined (__UCLIBC__) && !TR_UCLIBC_CHECK_VERSION (1, 0, 17)
  19. spaceused = (int64_t) btodb(dq.dqb_curblocks);
  20. #elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2)
  21. spaceused = (int64_t) dq.dqb_curblocks >> 1;
  22. --
  23. 2.7.4 (Apple Git-66)