in libtransmission/platform-quota.c, a one-liner patch to fix compilation on some versions of Linux. Patch by rb07

This commit is contained in:
Jordan Lee 2013-07-12 22:42:40 +00:00
parent af3481400f
commit ba465de7d1
1 changed files with 1 additions and 1 deletions

View File

@ -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);