You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
989 B

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