1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-22 21:37:08 +00:00
termux-packages/x11-packages/love/src-libraries-physfs-physfs_platform_unix.c.patch
2022-12-03 01:40:32 +00:00

12 lines
394 B
Diff

--- a/src/libraries/physfs/physfs_platform_unix.c
+++ b/src/libraries/physfs/physfs_platform_unix.c
@@ -101,7 +101,7 @@
FILE *mounts = NULL;
struct mntent *ent = NULL;
- mounts = setmntent("/etc/mtab", "r");
+ mounts = setmntent("@TERMUX_PREFIX@/etc/mtab", "r");
BAIL_IF(mounts == NULL, PHYSFS_ERR_IO, /*return void*/);
while ( (ent = getmntent(mounts)) != NULL )