0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/busybox/0012-util-linux-mount-no-addmntent.patch
Tee KOBAYASHI df0a911405 busybox: Fix for addmntent
%ci:no-build
2023-04-11 16:06:26 +09:00

13 lines
302 B
Diff

--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -182,6 +182,9 @@
//usage: "Returns 0 for success, number of failed mounts for -a, or errno for one mount."
#include <mntent.h>
+#ifdef __ANDROID__
+#define addmntent(s,m) (1)
+#endif
#if ENABLE_FEATURE_SYSLOG
#include <syslog.h>
#endif