summaryrefslogtreecommitdiffstats
path: root/ftp/transmission-i2p/patches/platform-quota.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/transmission-i2p/patches/platform-quota.patch')
-rw-r--r--ftp/transmission-i2p/patches/platform-quota.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ftp/transmission-i2p/patches/platform-quota.patch b/ftp/transmission-i2p/patches/platform-quota.patch
new file mode 100644
index 0000000000..f449310c36
--- /dev/null
+++ b/ftp/transmission-i2p/patches/platform-quota.patch
@@ -0,0 +1,13 @@
+diff --git a/libtransmission/platform-quota.c b/libtransmission/platform-quota.c
+index 1b8a33b..efdccb0 100644
+--- a/libtransmission/platform-quota.c
++++ b/libtransmission/platform-quota.c
+@@ -241,7 +241,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);