Ticket #5413: 000-platform-quota.c.patch

File 000-platform-quota.c.patch, 537 bytes (added by rb07, 9 years ago)
  • libtransmission/platform-quota.c

     
    238238      spaceused = (int64_t) dq.dqb_curbytes;
    239239#elif defined(__UCLIBC__)
    240240      spaceused = (int64_t) btodb(dq.dqb_curblocks);
    241 #elif defined(__sun)
     241#elif defined(__sun) || (_LINUX_QUOTA_VERSION < 2)
    242242      spaceused = (int64_t) dq.dqb_curblocks >> 1;
    243243#else
    244244      spaceused = btodb(dq.dqb_curspace);