aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@fastmail.fm>2023-01-03 11:46:11 +0100
committerNikolaus Rath <Nikolaus@rath.org>2023-01-04 15:27:21 +0000
commitd372d3f80b5437e652ea501d8a4a917f7001b9d7 (patch)
tree92e3a6be7159d32957fc728a7222ae965306f75b /include/fuse.h
parent3736e0c85f4a8b624f6f1a27b736c18adbce9c15 (diff)
downloadlibfuse-d372d3f80b5437e652ea501d8a4a917f7001b9d7.tar.gz
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.
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h12
1 files changed, 12 insertions, 0 deletions
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
*