Fix fuse_main_real symbols
authorBernd Schubert <bernd@bsbernd.com>
Sat, 4 Jan 2025 15:08:30 +0000 (16:08 +0100)
committerBernd Schubert <bernd@bsbernd.com>
Mon, 10 Feb 2025 15:56:45 +0000 (16:56 +0100)
Commit 58f85bfa9b7d ("Add in the libfuse version a program...")
forgot to add a fuse_main_real function for libfuse compilations
that are not symboled. That is now added in compat.c.

Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
lib/compat.c

index bab3f88c65d65f496d68be2c3f31c826f92eee21..ce8a93399affdc8ef44abbaead0a7cb9deabb455 100644 (file)
 
 #include "libfuse_config.h"
 
+#include <stddef.h>
+
 struct fuse_args;
 struct fuse_cmdline_opts;
 struct fuse_cmdline_opts;
 struct fuse_session;
 struct fuse_custom_io;
-
+struct fuse_operations;
+struct fuse_lowlevel_ops;
 
 /**
  * Compatibility ABI symbol for systems that do not support version symboling
@@ -36,7 +39,7 @@ struct fuse_custom_io;
 #undef fuse_parse_cmdline
 #endif
 int fuse_parse_cmdline_30(struct fuse_args *args,
-                           struct fuse_cmdline_opts *opts);
+                         struct fuse_cmdline_opts *opts);
 int fuse_parse_cmdline(struct fuse_args *args,
                       struct fuse_cmdline_opts *opts);
 int fuse_parse_cmdline(struct fuse_args *args,
@@ -55,6 +58,30 @@ int fuse_session_custom_io(struct fuse_session *se,
 {
        return fuse_session_custom_io_30(se, io, fd);
 }
+
+int fuse_main_real_30(int argc, char *argv[], const struct fuse_operations *op,
+                     size_t op_size, void *user_data);
+int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op,
+                  size_t op_size, void *user_data);
+int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op,
+                  size_t op_size, void *user_data)
+{
+       return fuse_main_real_30(argc, argv, op, op_size, user_data);
+}
+
+struct fuse_session *fuse_session_new_30(struct fuse_args *args,
+                                        const struct fuse_lowlevel_ops *op,
+                                        size_t op_size, void *userdata);
+struct fuse_session *fuse_session_new(struct fuse_args *args,
+                                     const struct fuse_lowlevel_ops *op,
+                                     size_t op_size, void *userdata);
+struct fuse_session *fuse_session_new(struct fuse_args *args,
+                                     const struct fuse_lowlevel_ops *op,
+                                     size_t op_size, void *userdata)
+{
+       return fuse_session_new_30(args, op, op_size, userdata);
+}
+
 #endif