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:
parent
a6521ab14a
commit
01b98414eb
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue