summaryrefslogtreecommitdiff
path: root/libbb/mtab_file.c
diff options
context:
space:
mode:
authorRob Landley2006-08-08 01:39:49 +0000
committerRob Landley2006-08-08 01:39:49 +0000
commite3781b731215d826585fe37720eebe147705f340 (patch)
treeb146c666feca3c4908bc5bb90842a2c0d707385b /libbb/mtab_file.c
parent47b16a6fe98e1b18f269a2bd34471231553ebb94 (diff)
downloadbusybox-e3781b731215d826585fe37720eebe147705f340.zip
busybox-e3781b731215d826585fe37720eebe147705f340.tar.gz
Add shared subtree support, suggested by Vladimir Dronnikov. Also break out a
few new (unfinished) config options, which I intend to make hidden (but enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure to do that is non-obvious, it seems...
Diffstat (limited to 'libbb/mtab_file.c')
-rw-r--r--libbb/mtab_file.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libbb/mtab_file.c b/libbb/mtab_file.c
index 3821a68..92bd239 100644
--- a/libbb/mtab_file.c
+++ b/libbb/mtab_file.c
@@ -13,8 +13,5 @@
/* Busybox mount uses either /proc/mounts or /etc/mtab to
* get the list of currently mounted filesystems */
-#if defined(CONFIG_FEATURE_MTAB_SUPPORT)
-const char bb_path_mtab_file[] = "/etc/mtab";
-#else
-const char bb_path_mtab_file[] = "/proc/mounts";
-#endif
+char bb_path_mtab_file[] = USE_FEATURE_MTAB_SUPPORT("/etc/mtab")
+ SKIP_FEATURE_MTAB_SUPPORT("/proc/mounts");