termux-packages/packages/libmdbx/src-osal.c.patch

12 lines
372 B
Diff
Raw Normal View History

2022-02-07 15:39:53 +01:00
--- a/src/osal.c
+++ b/src/osal.c
@@ -1292,7 +1292,7 @@
mounted = setmntent("/proc/mounts", "r");
#endif /* Linux */
if (!mounted)
- mounted = setmntent("/etc/mtab", "r");
+ mounted = setmntent("@TERMUX_PREFIX@/etc/mtab", "r");
if (mounted) {
const struct mntent *ent;
#if defined(_BSD_SOURCE) || defined(_SVID_SOURCE) || defined(__BIONIC__) || \