diff --git a/bindings/java/hyperic_jni/jni-build.xml b/bindings/java/hyperic_jni/jni-build.xml index 38abedd99..fb1fbf7b1 100644 --- a/bindings/java/hyperic_jni/jni-build.xml +++ b/bindings/java/hyperic_jni/jni-build.xml @@ -323,7 +323,8 @@ - + + diff --git a/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchNameTask.java b/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchNameTask.java index 4cf53924f..e95cb5b99 100644 --- a/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchNameTask.java +++ b/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchNameTask.java @@ -75,7 +75,7 @@ else if (ArchLoader.IS_AIX) { if (ArchName.is64()) { getProject().setProperty("jni.arch64", "true"); if (ArchLoader.IS_LINUX) { - if (!osArch.equals("ia64")) { + if (!osArch.equals("ia64") && !osArch.equals("loongarch64") ) { getProject().setProperty("jni.gccm", "-m64"); } } diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index a3fd23010..d4e10be54 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -30,6 +30,8 @@ #include "sigar_util.h" #include "sigar_os.h" +#include + #define pageshift(x) ((x) << sigar->pagesize) #define PROC_MEMINFO PROC_FS_ROOT "meminfo"