Skip to content

Commit

Permalink
Merge pull request #54 from ncw/fix-macfuse4
Browse files Browse the repository at this point in the history
macos: look in alternate location for macfuse/osxfuse library
  • Loading branch information
billziss-gh authored Feb 10, 2021
2 parents e0e91bc + e31196c commit 11da055
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fuse/host_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ static void *cgofuse_init_fuse(void)
void *h;
#if defined(__APPLE__)
h = dlopen("/usr/local/lib/libosxfuse.2.dylib", RTLD_NOW);
h = dlopen("/usr/local/lib/libfuse.2.dylib", RTLD_NOW); // MacFUSE/OSXFuse >= v4
if (0 == h)
h = dlopen("/usr/local/lib/libosxfuse.2.dylib", RTLD_NOW); // MacFUSE/OSXFuse < v4
#elif defined(__FreeBSD__)
h = dlopen("libfuse.so.2", RTLD_NOW);
#elif defined(__NetBSD__)
Expand Down

0 comments on commit 11da055

Please sign in to comment.