chiark / gitweb /
Initial push
[termux-packages] / packages / coreutils / coreutils.patch
1 diff -u -r ../coreutils-8.22/lib/mountlist.c ./lib/mountlist.c
2 --- ../coreutils-8.22/lib/mountlist.c   2013-12-04 15:53:33.000000000 +0100
3 +++ ./lib/mountlist.c   2014-01-07 19:12:03.794066905 +0100
4 @@ -428,6 +428,9 @@
5  
6  #ifdef MOUNTED_GETMNTENT1 /* GNU/Linux, 4.3BSD, SunOS, HP-UX, Dynix, Irix.  */
7    {
8 +# ifdef __ANDROID__
9 +    return NULL;
10 +# else
11      struct mntent *mnt;
12      char const *table = MOUNTED;
13      FILE *fp;
14 @@ -454,6 +457,7 @@
15  
16      if (endmntent (fp) == 0)
17        goto free_then_fail;
18 +# endif
19    }
20  #endif /* MOUNTED_GETMNTENT1. */
21