]> granicus.if.org Git - transmission/commitdiff
in libtransmission/platform-quota.c, a one-liner patch to fix compilation on some...
authorJordan Lee <jordan@transmissionbt.com>
Fri, 12 Jul 2013 22:42:40 +0000 (22:42 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 12 Jul 2013 22:42:40 +0000 (22:42 +0000)
libtransmission/platform-quota.c

index 9269b59fbb2023981842513e91e0c25e51a37efc..fbae547247fae4efb5b323b6a4e507e45cd48600 100644 (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);