From 9c2ccb43c3cc960334e2ab0069501dc583c7dbf7 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 17 Nov 2005 17:11:48 +0000 Subject: fix --- include/fuse_lowlevel.h | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'include/fuse_lowlevel.h') 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 -- cgit v1.2.3