Mercurial > gnulib
comparison lib/mountlist.c @ 40144:cdd46dde7e34
mountlist: Port better to Android.
* lib/mountlist.c (MOUNTED): Redefine on Android.
* m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
Android.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 26 Jan 2019 22:49:57 +0100 |
parents | b06060465f09 |
children | 62fbdb07f551 |
comparison
equal
deleted
inserted
replaced
40143:648fa64e008c | 40144:cdd46dde7e34 |
---|---|
64 | 64 |
65 #ifdef MOUNTED_GETMNTENT1 /* glibc, HP-UX, IRIX, Cygwin, Android, | 65 #ifdef MOUNTED_GETMNTENT1 /* glibc, HP-UX, IRIX, Cygwin, Android, |
66 also (obsolete) 4.3BSD, SunOS */ | 66 also (obsolete) 4.3BSD, SunOS */ |
67 # include <mntent.h> | 67 # include <mntent.h> |
68 # include <sys/types.h> | 68 # include <sys/types.h> |
69 # if !defined MOUNTED | 69 # if defined __ANDROID__ /* Android */ |
70 /* Bionic versions from between 2014-01-09 and 2015-01-08 define MOUNTED to | |
71 an incorrect value; older Bionic versions don't define it at all. */ | |
72 # undef MOUNTED | |
73 # define MOUNTED "/proc/mounts" | |
74 # elif !defined MOUNTED | |
70 # if defined _PATH_MOUNTED /* GNU libc */ | 75 # if defined _PATH_MOUNTED /* GNU libc */ |
71 # define MOUNTED _PATH_MOUNTED | 76 # define MOUNTED _PATH_MOUNTED |
72 # endif | 77 # endif |
73 # if defined MNT_MNTTAB /* HP-UX. */ | 78 # if defined MNT_MNTTAB /* HP-UX. */ |
74 # define MOUNTED MNT_MNTTAB | 79 # define MOUNTED MNT_MNTTAB |