From aedfc35393af75b35d6883f20b0cf58f97637f29 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Thu, 11 Dec 2014 20:06:07 +0000 Subject: [PATCH] #5692: Fix build under Cygwin (patch by rb07) --- libtransmission/platform-quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0