make linking of thread-start with explicit scheduling conditional
[musl] / src / linux / sysinfo.c
index 9866947..4b5a798 100644 (file)
@@ -1,9 +1,10 @@
-#define SYSCALL_STANDALONE
+#include <sys/sysinfo.h>
 #include "syscall.h"
+#include "libc.h"
 
-struct sysinfo;
-
-int sysinfo(struct sysinfo *info)
+int __lsysinfo(struct sysinfo *info)
 {
-       return syscall1(__NR_sysinfo, (long)info);
+       return syscall(SYS_sysinfo, info);
 }
+
+weak_alias(__lsysinfo, sysinfo);