fwknop: init script improvements
[feed/packages.git] / net / transmission / patches / 070-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch
1 From e24f7c6653ec385c8af7eb6499d924994e78e42d Mon Sep 17 00:00:00 2001
2 From: Waldemar Brodkorb <wbx@uclibc-ng.org>
3 Date: Wed, 19 Oct 2016 19:33:35 +0200
4 Subject: [PATCH] uClibc-ng since 1.0.18 has sys/quota.h synced with GNU libc
5
6 ---
7 libtransmission/platform-quota.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/libtransmission/platform-quota.c b/libtransmission/platform-quota.c
11 index e7d1f6d4f..bb1f9d9b9 100644
12 --- a/libtransmission/platform-quota.c
13 +++ b/libtransmission/platform-quota.c
14 @@ -285,7 +285,7 @@ getquota (const char * device)
15 spaceused = (int64_t) dq.dqb_curblocks >> 1;
16 #elif defined(__APPLE__)
17 spaceused = (int64_t) dq.dqb_curbytes;
18 -#elif defined(__UCLIBC__)
19 +#elif defined (__UCLIBC__) && !TR_UCLIBC_CHECK_VERSION (1, 0, 18)
20 spaceused = (int64_t) btodb(dq.dqb_curblocks);
21 #elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2)
22 spaceused = (int64_t) dq.dqb_curblocks >> 1;
23 --
24 2.17.1
25