From d372d3f80b5437e652ea501d8a4a917f7001b9d7 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Tue, 3 Jan 2023 11:46:11 +0100 Subject: Fixes when HAVE_LIBC_VERSIONED_SYMBOLS is not defined fuse_loop_mt and fuse_new had not been defined when HAVE_LIBC_VERSIONED_SYMBOLS had not been set and additionally, fuse_new_31 was missing in the version script and was therefore an unusable symbol. This also adds a test for unset HAVE_LIBC_VERSIONED_SYMBOLS. --- include/fuse.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index 9897c85..2888d2b 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -948,8 +948,15 @@ struct fuse *fuse_new_30(struct fuse_args *args, const struct fuse_operations *o size_t op_size, void *private_data); #define fuse_new(args, op, size, data) fuse_new_30(args, op, size, data) #else +#if (defined(HAVE_LIBC_VERSIONED_SYMBOLS)) struct fuse *fuse_new(struct fuse_args *args, const struct fuse_operations *op, size_t op_size, void *private_data); +#else /* HAVE_LIBC_VERSIONED_SYMBOLS */ +struct fuse *fuse_new_31(struct fuse_args *args, + const struct fuse_operations *op, + size_t op_size, void *user_data); +#define fuse_new(args, op, size, data) fuse_new_31(args, op, size, data) +#endif /* HAVE_LIBC_VERSIONED_SYMBOLS */ #endif /** @@ -1046,9 +1053,14 @@ int fuse_loop_mt_32(struct fuse *f, struct fuse_loop_config *config); * * See also: fuse_loop() */ +#if (defined(HAVE_LIBC_VERSIONED_SYMBOLS)) int fuse_loop_mt(struct fuse *f, struct fuse_loop_config *config); +#else +#define fuse_loop_mt(f, config) fuse_loop_mt_312(f, config) +#endif /* HAVE_LIBC_VERSIONED_SYMBOLS */ #endif + /** * Get the current context * -- cgit v1.2.3