Fuse version 2.6 (and above) has a 4 argument version of fuse_main(),

whereas previous versions had a 3 argument one. Accept both.
This commit is contained in:
agc 2007-05-15 22:47:35 +00:00
parent a6521ab14a
commit 01b98414eb
1 changed files with 5 additions and 0 deletions

View File

@ -165,8 +165,13 @@ void fuse_teardown(struct fuse *, char *);
void fuse_unmount_compat22(const char *);
#if FUSE_VERSION >= 26
#define fuse_main(argc, argv, op, arg) \
fuse_main_real(argc, argv, op, sizeof(*(op)), arg)
#else
#define fuse_main(argc, argv, op) \
fuse_main_real(argc, argv, op, sizeof(*(op)), NULL)
#endif
#ifdef __cplusplus
}