]> granicus.if.org Git - transmission/commitdiff
#5692: Fix build under Cygwin (patch by rb07)
authorMike Gelfand <mikedld@mikedld.com>
Thu, 11 Dec 2014 20:06:07 +0000 (20:06 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Thu, 11 Dec 2014 20:06:07 +0000 (20:06 +0000)
libtransmission/platform-quota.c

index 0375a16dfdd8decef6e16a0d6c2acb751b1e5e32..2f4d2a9403b3e5ffcd2cae689554f76f3f9011a1 100644 (file)
@@ -286,7 +286,7 @@ getquota (const char * device)
       spaceused = (int64_t) dq.dqb_curbytes;
 #elif defined(__UCLIBC__)
       spaceused = (int64_t) btodb(dq.dqb_curblocks);
-#elif defined(__sun) || (_LINUX_QUOTA_VERSION < 2)
+#elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2)
       spaceused = (int64_t) dq.dqb_curblocks >> 1;
 #else
       spaceused = btodb(dq.dqb_curspace);