1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

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

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