From: Mike Gelfand Date: Thu, 11 Dec 2014 20:06:07 +0000 (+0000) Subject: #5692: Fix build under Cygwin (patch by rb07) X-Git-Tag: 2.90~319 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aedfc35393af75b35d6883f20b0cf58f97637f29;p=transmission #5692: Fix build under Cygwin (patch by rb07) --- diff --git a/libtransmission/platform-quota.c b/libtransmission/platform-quota.c index 0375a16df..2f4d2a940 100644 --- a/libtransmission/platform-quota.c +++ b/libtransmission/platform-quota.c @@ -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);