1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-01 12:35:22 +00:00

Merge pull request #42 from wbx-github/master

uClibc-ng since 1.0.18 has sys/quota.h synced with GNU libc
This commit is contained in:
Mike Gelfand 2016-10-19 21:01:06 +03:00 committed by GitHub
commit 0390684bc4

View file

@ -284,7 +284,7 @@ getquota (const char * device)
spaceused = (int64_t) dq.dqb_curblocks >> 1;
#elif defined(__APPLE__)
spaceused = (int64_t) dq.dqb_curbytes;
#elif defined(__UCLIBC__)
#elif defined (__UCLIBC__) && !TR_UCLIBC_CHECK_VERSION (1, 0, 18)
spaceused = (int64_t) btodb(dq.dqb_curblocks);
#elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2)
spaceused = (int64_t) dq.dqb_curblocks >> 1;