0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-06 03:46:41 +00:00
termux-packages/packages/mariadb/plugin-disks-information_schema_disks.cc.patch
2024-02-10 23:05:09 +08:00

14 lines
464 B
Diff

--- a/plugin/disks/information_schema_disks.cc
+++ b/plugin/disks/information_schema_disks.cc
@@ -222,8 +222,10 @@
#endif
// Try to keep to real storage by excluding
// read only mounts, and mount points that aren't directories
+#if !defined __ANDROID__ || __ANDROID_API__ >= 26
if (hasmntopt(pEnt, MNTOPT_RO) != NULL)
continue;
+#endif
if (stat(path, &f))
continue;
if (!S_ISDIR(f.st_mode))