@@ -29,7 +29,11 @@ JNIEXPORT jobject JNICALL Java_java_io_FileSystem_getFileSystem(JNIEnv *env, jclass ignored) { +#ifdef MACOSX + return JNU_NewObjectByName(env, "java/io/MacOSXFileSystem", "()V"); +#else return JNU_NewObjectByName(env, "java/io/UnixFileSystem", "()V"); +#endif }