From 172a8bbe4f0bd47e24354392d4c5f0cde3afa5e7 Mon Sep 17 00:00:00 2001 From: cha0smaster Date: Tue, 29 Nov 2005 18:00:06 +0000 Subject: [PATCH] oops, should do FUSE_USE_VERSION magic before including --- ntfsprogs/ntfsmount.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ntfsprogs/ntfsmount.c b/ntfsprogs/ntfsmount.c index beb73e08..7dfc1ec4 100644 --- a/ntfsprogs/ntfsmount.c +++ b/ntfsprogs/ntfsmount.c @@ -24,6 +24,11 @@ #include "config.h" +#ifdef __FreeBSD__ +#undef FUSE_USE_VERSION +#define FUSE_USE_VERSION 25 +#endif /* __FreeBSD__ */ + #include #ifdef HAVE_STDIO_H #include @@ -72,8 +77,6 @@ #endif #ifdef __FreeBSD__ -#undef FUSE_USE_VERSION -#define FUSE_USE_VERSION 25 typedef struct statvfs nf_statfs; #else typedef struct statfs nf_statfs; @@ -226,7 +229,7 @@ static int ntfs_fuse_statfs(const char *path __attribute__((unused)), #ifndef __FreeBSD__ /* Type of filesystem. */ sfs->f_type = NTFS_SB_MAGIC; -#endif +#endif /* __FreeBSD__ */ /* Optimal transfer block size. */ sfs->f_bsize = vol->cluster_size; /* @@ -253,7 +256,7 @@ static int ntfs_fuse_statfs(const char *path __attribute__((unused)), sfs->f_namelen = NTFS_MAX_NAME_LEN; #else sfs->f_namemax = NTFS_MAX_NAME_LEN; -#endif +#endif /* __FreeBSD__ */ return 0; }