From: Jordan Lee Date: Fri, 12 Jul 2013 22:42:40 +0000 (+0000) Subject: in libtransmission/platform-quota.c, a one-liner patch to fix compilation on some... X-Git-Tag: 2.81~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba465de7d1587153e2c6cc59eaa387d6e47d9663;p=transmission in libtransmission/platform-quota.c, a one-liner patch to fix compilation on some versions of Linux. Patch by rb07 --- diff --git a/libtransmission/platform-quota.c b/libtransmission/platform-quota.c index 9269b59fb..fbae54724 100644 --- a/libtransmission/platform-quota.c +++ b/libtransmission/platform-quota.c @@ -238,7 +238,7 @@ getquota (const char * device) spaceused = (int64_t) dq.dqb_curbytes; #elif defined(__UCLIBC__) spaceused = (int64_t) btodb(dq.dqb_curblocks); -#elif defined(__sun) +#elif defined(__sun) || (_LINUX_QUOTA_VERSION < 2) spaceused = (int64_t) dq.dqb_curblocks >> 1; #else spaceused = btodb(dq.dqb_curspace);