diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-11-17 17:11:48 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-11-17 17:11:48 +0000 |
commit | 9c2ccb43c3cc960334e2ab0069501dc583c7dbf7 (patch) | |
tree | 65cd4225c7c7dea85ea0c143f93a2ba4d4652cdd /include | |
parent | b3f9972a859e95cf836c0044c82fcf312afc566e (diff) | |
download | libfuse-9c2ccb43c3cc960334e2ab0069501dc583c7dbf7.tar.gz |
fix
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse.h | 10 | ||||
-rw-r--r-- | include/fuse_lowlevel.h | 23 |
2 files changed, 26 insertions, 7 deletions
diff --git a/include/fuse.h b/include/fuse.h index adf0c9a..4d58cd2 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -541,6 +541,8 @@ void fuse_set_getcontext_func(struct fuse_context *(*func)(void)); * Compatibility stuff * * ----------------------------------------------------------- */ +#ifndef __FreeBSD__ + #if FUSE_USE_VERSION == 22 || FUSE_USE_VERSION == 21 || FUSE_USE_VERSION == 11 # include "fuse_compat.h" # undef FUSE_MINOR_VERSION @@ -583,6 +585,14 @@ void fuse_set_getcontext_func(struct fuse_context *(*func)(void)); # error Compatibility with API version other than 21, 22 and 11 not supported #endif +#else /* __FreeBSD__ */ + +#if FUSE_USE_VERSION < 25 +# error On FreeBSD API version 25 or greater must be used +#endif + +#endif /* __FreeBSD__ */ + #ifdef __cplusplus } #endif diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index aa1e453..a88a898 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -1210,18 +1210,27 @@ void fuse_chan_destroy(struct fuse_chan *ch); * Compatibility stuff * * ----------------------------------------------------------- */ -#if FUSE_USE_VERSION == 24 -#include "fuse_lowlevel_compat.h" -#undef FUSE_MINOR_VERSION -#define FUSE_MINOR_VERSION 4 -#define fuse_file_info fuse_file_info_compat -#define fuse_reply_statfs fuse_reply_statfs_compat -#define fuse_reply_open fuse_reply_open_compat +#ifndef __FreeBSD__ +#if FUSE_USE_VERSION == 24 +# include "fuse_lowlevel_compat.h" +# undef FUSE_MINOR_VERSION +# define FUSE_MINOR_VERSION 4 +# define fuse_file_info fuse_file_info_compat +# define fuse_reply_statfs fuse_reply_statfs_compat +# define fuse_reply_open fuse_reply_open_compat #elif FUSE_USE_VERSION < 25 # error Compatibility with low level API version other than 24 not supported #endif +#else /* __FreeBSD__ */ + +#if FUSE_USE_VERSION < 25 +# error On FreeBSD API version 25 or greater must be used +#endif + +#endif /* __FreeBSD__ */ + #ifdef __cplusplus } #endif |