summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-30 21:15:06 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-30 21:18:09 +0200
commited68feaf766b9eb01a5196c36dd6e0c607889612 (patch)
tree8a2ddb037480aa707985b7cfa7b7ab82d7d52914 /package
parent765f694fc3970f167a7420c1456e544b8cc684ac (diff)
transmission: fix compile with latest uClibc-ng
Diffstat (limited to 'package')
-rw-r--r--package/transmission/patches/patch-libtransmission_platform-quota_c11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/transmission/patches/patch-libtransmission_platform-quota_c b/package/transmission/patches/patch-libtransmission_platform-quota_c
new file mode 100644
index 000000000..dd6c09760
--- /dev/null
+++ b/package/transmission/patches/patch-libtransmission_platform-quota_c
@@ -0,0 +1,11 @@
+--- transmission-2.92.orig/libtransmission/platform-quota.c 2015-03-27 13:44:20.469243994 +0100
++++ transmission-2.92/libtransmission/platform-quota.c 2016-09-30 19:08:06.279386697 +0200
+@@ -285,8 +285,6 @@ getquota (const char * device)
+ spaceused = (int64_t) dq.dqb_curblocks >> 1;
+ #elif defined(__APPLE__)
+ spaceused = (int64_t) dq.dqb_curbytes;
+-#elif defined(__UCLIBC__)
+- spaceused = (int64_t) btodb(dq.dqb_curblocks);
+ #elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2)
+ spaceused = (int64_t) dq.dqb_curblocks >> 1;
+ #else