]> granicus.if.org Git - transmission/commitdiff
uClibc-ng since 1.0.18 has sys/quota.h synced with GNU libc
authorWaldemar Brodkorb <wbx@uclibc-ng.org>
Wed, 19 Oct 2016 17:33:35 +0000 (19:33 +0200)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Wed, 19 Oct 2016 17:33:35 +0000 (19:33 +0200)
libtransmission/platform-quota.c

index 58c518a346e4c6ae5ce363a087c23af6e373af98..67a1653de4608cfc9026baf6babd516ef3290988 100644 (file)
@@ -284,7 +284,7 @@ getquota (const char * device)
       spaceused = (int64_t) dq.dqb_curblocks >> 1;
 #elif defined(__APPLE__)
       spaceused = (int64_t) dq.dqb_curbytes;
-#elif defined(__UCLIBC__)
+#elif defined (__UCLIBC__) && !TR_UCLIBC_CHECK_VERSION (1, 0, 18)
       spaceused = (int64_t) btodb(dq.dqb_curblocks);
 #elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2)
       spaceused = (int64_t) dq.dqb_curblocks >> 1;