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..a94b97a5c 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..d63c9555b 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "sigar.h" #include "sigar_private.h"