Got removable media mount detection working on Android.

Bionic has an amusing stub for `getmntent` that prints out
"FIX ME! implement getmntent()"

But, `/proc/mounts` is there, so I just parse it.
This commit is contained in:
Joey Hess 2013-05-04 16:04:17 -04:00
parent 41e6c1de9a
commit d35132810a
5 changed files with 37 additions and 9 deletions

View file

@ -6,7 +6,7 @@
# define GETMNTINFO
#else
#if defined __ANDROID__
# warning mounts listing code not available for Android
/* Android is handled by the Haskell code, not here. */
# define UNKNOWN
#else
#if defined (__linux__) || defined (__FreeBSD_kernel__)