diff --git a/porting/linux/user/include/sys/sysinfo.h b/porting/linux/user/include/sys/sysinfo.h index 9b095ffb500bbd0d9d83cbacc4396725d7631ae0..b55bb2a97079f0e74bc54165ddfe003dcd953ea4 100644 --- a/porting/linux/user/include/sys/sysinfo.h +++ b/porting/linux/user/include/sys/sysinfo.h @@ -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 #endif int sysinfo (struct sysinfo *);