diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 0d4283ac..b73c1971 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -2009,6 +2009,8 @@ static int parse_options(int argc, char *argv[]) return 0; } +#ifdef linux + static void create_dev_fuse(void) { struct stat st; @@ -2019,8 +2021,6 @@ static void create_dev_fuse(void) } } -#ifdef linux - static fuse_fstype get_fuse_fstype(void) { char buf[256]; @@ -2161,8 +2161,9 @@ int main(int argc, char *argv[]) fstype = get_fuse_fstype(); if (fstype == FSTYPE_NONE || fstype == FSTYPE_UNKNOWN) fstype = load_fuse_module(); -#endif + create_dev_fuse(); +#endif if (stat(opts.device, &sbuf)) { ntfs_log_perror("Failed to access '%s'", opts.device);