mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user