Skip to content

Commit

Permalink
Add loongarch64 support hyperic#159
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhanyin committed Aug 28, 2024
1 parent 09b4830 commit 7cd4768
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions bindings/java/hyperic_jni/jni-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@
<compilerarg value="-O2" if="jni.optim"/>
<compilerarg value="-g" if="jni.debug"/>
<compilerarg value="-Wall"/>
<compilerarg value="-fgnu89-inline"/>
<compilerarg value="-Werror" if="jni.werror"/>
<compilerarg value="${jni.gccm}" if="jni.gccm"/>
<defineset>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/os/linux/linux_sigar.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <sys/times.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <sys/sysmacros.h>

#ifdef __GNU_LIBRARY__
#include <sys/sysmacros.h>
Expand All @@ -35,6 +36,7 @@
#include "sigar_util.h"
#include "sigar_os.h"


#define pageshift(x) ((x) << sigar->pagesize)

#define PROC_MEMINFO PROC_FS_ROOT "meminfo"
Expand Down

0 comments on commit 7cd4768

Please sign in to comment.