From 190367bb527dadd595e07b8a917642601e7306b8 Mon Sep 17 00:00:00 2001 From: szaka Date: Mon, 9 Jul 2007 21:03:57 +0000 Subject: [PATCH] portability fixes --- src/ntfs-3g.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);