Define fuse_session_loop_mt as a macro on uclibc and MacOS (#532)

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>
This commit is contained in:
asafkahlon 2020-08-09 14:37:26 +03:00 committed by GitHub
parent c5e8684b5a
commit 7b3e389915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View 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
/**

View 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;