未验证 提交 d6feddc5 编写于 作者: O openharmony_ci 提交者: Gitee

!1028 修复musl重复加载头文件导致的兼容问题

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