From 9abeb7ef2b887c6e640826e4a830fb0d61303795 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 15 Mar 2005 21:40:36 +0000 Subject: [PATCH] make sure we dont do NfsFileSystem on win32 --- bindings/java/src/jni/javasigar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/java/src/jni/javasigar.c b/bindings/java/src/jni/javasigar.c index 398b69fc..e7b997a4 100644 --- a/bindings/java/src/jni/javasigar.c +++ b/bindings/java/src/jni/javasigar.c @@ -306,6 +306,9 @@ JNIEXPORT jobjectArray SIGAR_JNI(Sigar_getFileSystemList) jobject fsobj; jclass obj_cls; +#ifdef WIN32 + obj_cls = cls; +#else if ((fs->type == SIGAR_FSTYPE_NETWORK) && (strcmp(fs->sys_type_name, "nfs") == 0) && strstr(fs->dev_name, ":/")) @@ -318,6 +321,7 @@ JNIEXPORT jobjectArray SIGAR_JNI(Sigar_getFileSystemList) else { obj_cls = cls; } +#endif fsobj = JENV->AllocObject(env, obj_cls);