summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/sysinfo.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-16 13:00:31 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:39 +0200
commit823b22d7c34c8f12b72fde4666a799429ffb06dd (patch)
tree6676b9b73140a471b0f4d275a495b5768d90d952 /libc/sysdeps/linux/common/sysinfo.c
parent2dfcffb69066bdd1816b8347b04021bbebc7d834 (diff)
provide sysinfo stub
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/sysinfo.c')
-rw-r--r--libc/sysdeps/linux/common/sysinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/sysinfo.c b/libc/sysdeps/linux/common/sysinfo.c
index fc37aaff6..7eb292699 100644
--- a/libc/sysdeps/linux/common/sysinfo.c
+++ b/libc/sysdeps/linux/common/sysinfo.c
@@ -8,5 +8,8 @@
*/
#include <sys/syscall.h>
-#include <sys/sysinfo.h>
+
+#ifdef __NR_sysinfo
+# include <sys/sysinfo.h>
_syscall1(int, sysinfo, struct sysinfo *, info)
+#endif