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:
parent
af3481400f
commit
ba465de7d1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue