From ccb6821019c19600110af6750e0d2395a9401617 Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Sat, 8 Mar 2025 23:36:06 +0100 Subject: [PATCH] Disable macOS specific FUSE API extensions Some macOS specific features require FUSE API modifications and extensions that break compatibility with the vanilla FUSE API. Setting the compile-time flag FUSE_DARWIN_ENABLE_EXTENSIONS to 0, when building a file system, disables those API extensions. By default, the macOS specific API modifications and extensions are enabled. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index a408661..383ca53 100644 --- a/meson.build +++ b/meson.build @@ -34,6 +34,7 @@ cfg.set_quoted('PACKAGE_VERSION', meson.project_version()) include_dirs = [ include_directories('.') ] sshfs_sources = ['sshfs.c', 'cache.c'] if target_machine.system() == 'darwin' + add_global_arguments('-DFUSE_DARWIN_ENABLE_EXTENSIONS=0', language: 'c') cfg.set_quoted('IDMAP_DEFAULT', 'user') sshfs_sources += [ 'compat/darwin_compat.c' ] include_dirs += [ include_directories('compat') ]