Define fuse_session_loop_mt as a macro on uclibc and MacOS (#532)
authorasafkahlon <35964924+asafkahlon@users.noreply.github.com>
Sun, 9 Aug 2020 11:37:26 +0000 (14:37 +0300)
committerGitHub <noreply@github.com>
Sun, 9 Aug 2020 11:37:26 +0000 (12:37 +0100)
On uclibc and MacOS we don't use versioned symbols. Hence,
there's no definition for fuse_session_loop_mt on those cases
and the linker won't be able to resolve calls to fuse_session_loop_mt()

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
include/fuse_lowlevel.h
lib/fuse_versionscript

index e2b4617b9aaf8059e65ac072fec2f99c7f980829..f2ef622e900a4077ac7d0a65ea9675890e3371ca 100644 (file)
@@ -1982,7 +1982,12 @@ int fuse_session_loop(struct fuse_session *se);
 int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd);
 #define fuse_session_loop_mt(se, clone_fd) fuse_session_loop_mt_31(se, clone_fd)
 #else
+#if (!defined(__UCLIBC__) && !defined(__APPLE__))
 int fuse_session_loop_mt(struct fuse_session *se, struct fuse_loop_config *config);
+#else
+int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *config);
+#define fuse_session_loop_mt(se, config) fuse_session_loop_mt_32(se, config)
+#endif
 #endif
 
 /**
index 235abf411f6966c6710dc47fdd8d2df3d66c456d..a06f7689a123b889c7d8d5428f3ba8a103a226eb 100644 (file)
@@ -146,6 +146,7 @@ FUSE_3.2 {
        global:
                fuse_session_loop_mt;
                fuse_session_loop_mt_31;
+               fuse_session_loop_mt_32;
                fuse_loop_mt;
                fuse_loop_mt_31;
 } FUSE_3.1;