diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 6477ee3a4..1cfd25d9e 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -46,6 +46,15 @@ #include #include +#if defined(__BIONIC__) && (__ANDROID_API__ < 26) +#include +/* the shared object of recent bionic libc's have hasmntopt symbol, but + some a possible common build environment for android, termux ends + up with inssuficient __ANDROID_API__ value for building. +*/ +extern char* hasmntopt(const struct mntent* mnt, const char* opt); +#endif + #if HAVE_SYS_STATFS_H #include #endif