aboutsummaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/utility.c b/utility.c
index 26568320f..125e819ed 100644
--- a/utility.c
+++ b/utility.c
@@ -36,6 +36,15 @@
#include <unistd.h>
#include <ctype.h>
+#ifdef BB_MTAB
+const char mtab_file[] = "/etc/mtab";
+#else
+#if defined BB_MOUNT || defined BB_UMOUNT || defined BB_DF
+const char mtab_file[] = "/proc/mounts";
+#endif
+#endif
+
+
/* volatile so gcc knows this is the enod of the line */
volatile void usage(const char *usage)
{