X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=mount.c;h=5b6ec1e71ff64c834e8858878f84dfe42666eb0c;hb=4949faf4b2090ca23c2aeb34535fdbe57754913a;hp=9f7ac43c15135aafa4f6d99a83efcb3b1fedc20d;hpb=1e117b47523e3001572277df29725e91bd786e39;p=oweals%2Fbusybox.git diff --git a/mount.c b/mount.c index 9f7ac43c1..5b6ec1e71 100644 --- a/mount.c +++ b/mount.c @@ -84,11 +84,7 @@ extern int mount (__const char *__special_file, __const char *__dir, extern int umount (__const char *__special_file); extern int umount2 (__const char *__special_file, int __flags); -#include -#include -static int sysfs( int option, unsigned int fs_index, char * buf); -_syscall3(int, sysfs, int, option, unsigned int, fs_index, char *, buf); - +extern int sysfs( int option, unsigned int fs_index, char * buf); extern const char mtab_file[]; /* Defined in utility.c */ @@ -160,7 +156,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype, /* If the mount was sucessful, do anything needed, then return TRUE */ if (status == 0 || fakeIt==TRUE) { -#if defined BB_MTAB +#if defined BB_FEATURE_MTAB_SUPPORT if (useMtab == TRUE) { erase_mtab(specialfile); // Clean any stale entries write_mtab(specialfile, dir, filesystemtype, flags, mtab_opts); @@ -385,7 +381,7 @@ extern int mount_main(int argc, char **argv) case 'f': fakeIt = TRUE; break; -#ifdef BB_MTAB +#ifdef BB_FEATURE_MTAB_SUPPORT case 'n': useMtab = FALSE; break;