diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-03-10 10:18:20 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2006-03-10 10:18:20 +0000 |
commit | 87c7793d1dfef4962cf656a93875023e79e63b59 (patch) | |
tree | 2479dfe90a3dd1ea10699bc8a1894f41343d74a4 /include/fuse_common.h | |
parent | 9caf0fea6864aafdc75f29a9d3e10274c043d2ee (diff) | |
download | libfuse-87c7793d1dfef4962cf656a93875023e79e63b59.tar.gz |
fix
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r-- | include/fuse_common.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h index f05d237..056b92b 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -120,6 +120,35 @@ int fuse_parse_cmdline(struct fuse_args *args, char **mountpoint, int *multithreaded, int *foreground); +#if FUSE_USE_VERSION < 26 +# ifdef __FreeBSD__ +# if FUSE_USE_VERSION < 25 +# error On FreeBSD API version 25 or greater must be used +# endif +# endif +# include "fuse_common_compat.h" +# undef FUSE_MINOR_VERSION +# undef fuse_main +# define fuse_unmount fuse_unmount_compat22 +# if FUSE_USE_VERSION == 25 +# define FUSE_MINOR_VERSION 5 +# elif FUSE_USE_VERSION == 24 || FUSE_USE_VERSION == 22 +# define FUSE_MINOR_VERSION 4 +# define fuse_mount fuse_mount_compat22 +# elif FUSE_USE_VERSION == 21 +# define FUSE_MINOR_VERSION 1 +# define fuse_mount fuse_mount_compat22 +# elif FUSE_USE_VERSION == 11 +# warning Compatibility with API version 11 is deprecated +# undef FUSE_MAJOR_VERSION +# define FUSE_MAJOR_VERSION 1 +# define FUSE_MINOR_VERSION 1 +# define fuse_mount fuse_mount_compat1 +# else +# error Compatibility with API version other than 21, 22, 24, 25 and 11 not supported +# endif +#endif + #ifdef __cplusplus } #endif |