mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
gio: define hasmntopt ourselves under bionic libc
This is a workaround for build conditions one ends up with under termux, where the defined __ANDROID_API__ level is lower than what is provided by gcc installed for it, the libc .so nevertheless contains these symbols thus enabling the codepaths. This definition is only in use when meson detected the presence of this symbol in the libc. Fixes #3008 foo
This commit is contained in:
parent
9f4f8702e5
commit
3050c16aea
@ -46,6 +46,15 @@
|
||||
#include <gstdio.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#if defined(__BIONIC__) && (__ANDROID_API__ < 26)
|
||||
#include <mntent.h>
|
||||
/* 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 <sys/statfs.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user