case com.sun.jna.Platform.MAC:
// First, need to load iconv
final LibDl dl = (LibDl) Native.loadLibrary("iconv", LibDl.class);
dl.dlopen("iconv", LibDl.RTLD_LAZY | LibDl.RTLD_GLOBAL);
libFuse = null;
LibFuseProbe probe;
for (final String library : osxFuseLibraries) {
try {
probe = (LibMacFuseProbe) Native.loadLibrary(library, LibMacFuseProbe.class);
((LibMacFuseProbe) probe).macfuse_version();
// MacFUSE-compatible fuse library