Skip to content

Commit ccb6821

Browse files
committed
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.
1 parent ed08254 commit ccb6821

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ cfg.set_quoted('PACKAGE_VERSION', meson.project_version())
3434
include_dirs = [ include_directories('.') ]
3535
sshfs_sources = ['sshfs.c', 'cache.c']
3636
if target_machine.system() == 'darwin'
37+
add_global_arguments('-DFUSE_DARWIN_ENABLE_EXTENSIONS=0', language: 'c')
3738
cfg.set_quoted('IDMAP_DEFAULT', 'user')
3839
sshfs_sources += [ 'compat/darwin_compat.c' ]
3940
include_dirs += [ include_directories('compat') ]

0 commit comments

Comments
 (0)