GNU/kFreeBSD support

Gbp-Pq: Name 0002-kfreebsd.patch
This commit is contained in:
Aurelien Jarno 2022-05-13 23:03:04 +08:00 committed by openKylinBot
parent cbf64f28a4
commit c7fab4d881
7 changed files with 9 additions and 9 deletions

View File

@ -469,7 +469,7 @@ void fuse_remove_signal_handlers(struct fuse_session *se);
* ----------------------------------------------------------- */
#if FUSE_USE_VERSION < 26
# ifdef __FreeBSD__
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
# if FUSE_USE_VERSION < 25
# error On FreeBSD API version 25 or greater must be used
# endif

View File

@ -65,7 +65,7 @@ struct fuse *fuse_setup_compat25(int argc, char *argv[],
void fuse_teardown_compat22(struct fuse *fuse, int fd, char *mountpoint);
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(__NetBSD__)
#include <sys/statfs.h>
struct fuse_operations_compat22 {

View File

@ -72,7 +72,7 @@ size_t fuse_dirent_size(size_t namelen);
char *fuse_add_dirent(char *buf, const char *name, const struct stat *stbuf,
off_t off);
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(__NetBSD__)
#include <sys/statfs.h>

View File

@ -1522,7 +1522,7 @@ static inline void fuse_prepare_interrupt(struct fuse *f, fuse_req_t req,
fuse_do_prepare_interrupt(req, d);
}
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(__NetBSD__)
static int fuse_compat_open(struct fuse_fs *fs, const char *path,
struct fuse_file_info *fi)
@ -4729,7 +4729,7 @@ struct fuse *fuse_new_common(struct fuse_chan *ch, struct fuse_args *args,
if (!f->conf.ac_attr_timeout_set)
f->conf.ac_attr_timeout = f->conf.attr_timeout;
#if defined(__FreeBSD__) || defined(__NetBSD__)
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__)
/*
* In FreeBSD, we always use these settings as inode numbers
* are needed to make getcwd(3) work.
@ -4898,7 +4898,7 @@ void fuse_register_module(struct fuse_module *mod)
fuse_modules = mod;
}
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(__NetBSD__)
static struct fuse *fuse_new_common_compat(int fd, const char *opts,
const struct fuse_operations *op,

View File

@ -2842,7 +2842,7 @@ int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[])
}
#endif
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(__NetBSD__)
static void fill_open_compat(struct fuse_open_out *arg,
const struct fuse_file_info_compat *f)

View File

@ -235,6 +235,6 @@ void fuse_chan_destroy(struct fuse_chan *ch)
free(ch);
}
#ifndef __FreeBSD__
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
FUSE_SYMVER(".symver fuse_chan_new_compat24,fuse_chan_new@FUSE_2.4");
#endif

View File

@ -398,7 +398,7 @@ int fuse_version(void)
#include "fuse_compat.h"
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(__NetBSD__)
struct fuse *fuse_setup_compat22(int argc, char *argv[],
const struct fuse_operations_compat22 *op,