From: Amir Goldstein Date: Wed, 1 Jan 2025 17:16:43 +0000 (+0100) Subject: Fix libfuse build with FUSE_USE_VERSION 30 X-Git-Tag: fuse-3.17.1-rc0~27 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ada5f158064505f8c1870b0ab046e6f8e45c6475;p=qemu-gpiodev%2Flibfuse.git Fix libfuse build with FUSE_USE_VERSION 30 Signed-off-by: Amir Goldstein --- diff --git a/include/fuse.h b/include/fuse.h index 2fc1b6f..dbfa439 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -1013,7 +1013,9 @@ struct fuse *_fuse_new(struct fuse_args *args, #if FUSE_USE_VERSION == 30 struct fuse *_fuse_new_30(struct fuse_args *args, const struct fuse_operations *op, - size_t op_size, void *user_data); + size_t op_size, + struct libfuse_version *version, + void *user_data); static inline struct fuse * fuse_new(struct fuse_args *args, const struct fuse_operations *op, size_t op_size, diff --git a/test/test_setattr.c b/test/test_setattr.c index 8575203..ac55264 100644 --- a/test/test_setattr.c +++ b/test/test_setattr.c @@ -9,6 +9,9 @@ #define FUSE_USE_VERSION 30 +/* Not really needed - just to test build with FUSE_USE_VERSION == 30 */ +#include + #include #include #include diff --git a/test/test_write_cache.c b/test/test_write_cache.c index d3c7af0..0c8fa7e 100644 --- a/test/test_write_cache.c +++ b/test/test_write_cache.c @@ -9,6 +9,9 @@ #define FUSE_USE_VERSION 30 +/* Not really needed - just to test build with FUSE_USE_VERSION == 30 */ +#include + #include #include #include