aboutsummaryrefslogtreecommitdiff
path: root/src/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/sysinfo.c5
-rw-r--r--src/linux/x32/sysinfo.s6
2 files changed, 5 insertions, 6 deletions
diff --git a/src/linux/sysinfo.c b/src/linux/sysinfo.c
index 7e64f33..4b5a798 100644
--- a/src/linux/sysinfo.c
+++ b/src/linux/sysinfo.c
@@ -1,7 +1,10 @@
#include <sys/sysinfo.h>
#include "syscall.h"
+#include "libc.h"
-int sysinfo(struct sysinfo *info)
+int __lsysinfo(struct sysinfo *info)
{
return syscall(SYS_sysinfo, info);
}
+
+weak_alias(__lsysinfo, sysinfo);
diff --git a/src/linux/x32/sysinfo.s b/src/linux/x32/sysinfo.s
index 43c378c..53d79db 100644
--- a/src/linux/x32/sysinfo.s
+++ b/src/linux/x32/sysinfo.s
@@ -1,5 +1 @@
-.text
-.global sysinfo
-.type sysinfo,@function
-sysinfo:
- jmp __x32_sysinfo
+# see arch/x32/src/sysinfo.c