From 25e0a9462c959fbf3f9cb72598d63da7d4ef7576 Mon Sep 17 00:00:00 2001 From: Davies Liu Date: Fri, 13 Sep 2024 12:34:24 +0800 Subject: [PATCH] fix build in mac --- fuse/mount_darwin.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fuse/mount_darwin.go b/fuse/mount_darwin.go index 4a1d0904d..979ab5e8a 100644 --- a/fuse/mount_darwin.go +++ b/fuse/mount_darwin.go @@ -194,3 +194,9 @@ func mountV4(mountPoint string, opts *MountOptions, ready chan<- error) (fd int, func unmount(dir string, opts *MountOptions) error { return syscall.Unmount(dir, 0) } + +// parseFuseFd checks if `mountPoint` is the special form /dev/fd/N (with N >= 0), +// and returns N in this case. Returns -1 otherwise. +func parseFuseFd(mountPoint string) (fd int) { + return -1 +}