diff options
Diffstat (limited to 'mount.c')
-rw-r--r-- | mount.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -163,6 +163,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType, | |||
163 | 163 | ||
164 | char buf[255]; | 164 | char buf[255]; |
165 | 165 | ||
166 | #if defined BB_FEATURE_USE_PROCFS | ||
166 | if (strcmp(filesystemType, "auto") == 0) { | 167 | if (strcmp(filesystemType, "auto") == 0) { |
167 | FILE *f = fopen ("/proc/filesystems", "r"); | 168 | FILE *f = fopen ("/proc/filesystems", "r"); |
168 | 169 | ||
@@ -189,7 +190,9 @@ mount_one(char *blockDevice, char *directory, char *filesystemType, | |||
189 | } | 190 | } |
190 | } | 191 | } |
191 | fclose (f); | 192 | fclose (f); |
192 | } else { | 193 | } else |
194 | #endif | ||
195 | { | ||
193 | status = do_mount (blockDevice, directory, filesystemType, | 196 | status = do_mount (blockDevice, directory, filesystemType, |
194 | flags | MS_MGC_VAL, string_flags, useMtab, | 197 | flags | MS_MGC_VAL, string_flags, useMtab, |
195 | fakeIt, mtab_opts); | 198 | fakeIt, mtab_opts); |