提交 ea064522 编写于 作者: Z zzulilyw

Fix redefinition of struct sysinfo

Issue: https://gitee.com/openharmony/third_party_musl/issues/I7STOR

test: libctest
Signed-off-by: Nzzulilyw <liuyawei10@huawei.com>
上级 f4f2637e
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
extern "C" { extern "C" {
#endif #endif
#ifndef _LINUX_KERNEL_H #if !defined (__linux__) || !defined(STANDARD_SYSTEM)
#define SI_LOAD_SHIFT 16 #define SI_LOAD_SHIFT 16
struct sysinfo { struct sysinfo {
...@@ -23,6 +23,8 @@ struct sysinfo { ...@@ -23,6 +23,8 @@ struct sysinfo {
unsigned mem_unit; unsigned mem_unit;
char __reserved[256]; char __reserved[256];
}; };
#else
#include <linux/sysinfo.h>
#endif #endif
int sysinfo (struct sysinfo *); int sysinfo (struct sysinfo *);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册