portability fixes

master
szaka 2007-07-09 21:03:57 +00:00
parent 076e26f92e
commit 190367bb52
1 changed files with 4 additions and 3 deletions

View File

@ -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);