cmake: Update from 3.11.0 to 3.11.1
[termux-packages] / packages / transmission / no_quota.patch
CommitLineData
59f0d218
FF
1diff -u -r ../transmission-2.82/libtransmission/platform-quota.c ./libtransmission/platform-quota.c
2--- ../transmission-2.82/libtransmission/platform-quota.c 2013-08-09 04:45:44.000000000 +0200
3+++ ./libtransmission/platform-quota.c 2014-02-10 17:07:13.000000000 +0100
4@@ -22,7 +22,7 @@
5 #include <ufs/ufs/quota.h> /* quotactl() */
6 #elif defined (__sun)
7 #include <sys/fs/ufs_quota.h> /* quotactl */
8- #else
9+ #elif !defined(__ANDROID__)
10 #include <sys/quota.h> /* quotactl() */
11 #endif
12 #ifdef HAVE_GETMNTENT
13@@ -71,7 +71,9 @@
14 static const char *
15 getdev (const char * path)
16 {
17-#ifdef HAVE_GETMNTENT
18+#ifdef __ANDROID__
19+ return NULL;
20+#elif defined(HAVE_GETMNTENT)
21
22 FILE * fp;
23
24@@ -122,8 +124,9 @@
25 static const char *
26 getfstype (const char * device)
27 {
28-
29-#ifdef HAVE_GETMNTENT
30+#ifdef __ANDROID__
31+ return NULL;
32+#elif defined(HAVE_GETMNTENT)
33
34 FILE * fp;
35 #ifdef __sun
36@@ -198,6 +201,9 @@
37 static int64_t
38 getquota (const char * device)
39 {
40+#ifdef __ANDROID__
41+ return -1;
42+#else
43 struct dqblk dq;
44 int64_t limit;
45 int64_t freespace;
46@@ -258,6 +264,7 @@
47 #endif
48 /* something went wrong */
49 return -1;
50+#endif
51 }
52
53 #ifdef HAVE_XQM