diff --git a/components/libc/compilers/common/extension/sys/stat.h b/components/libc/compilers/common/extension/sys/stat.h index 2164ee512f..e4b2da764c 100644 --- a/components/libc/compilers/common/extension/sys/stat.h +++ b/components/libc/compilers/common/extension/sys/stat.h @@ -55,7 +55,7 @@ extern "C" { struct stat { - struct rt_device *st_dev; + dev_t st_dev; uint16_t st_ino; uint16_t st_mode; uint16_t st_nlink; diff --git a/components/net/sal/src/sal_socket.c b/components/net/sal/src/sal_socket.c index 51aa8ce0f4..225e50ad3b 100644 --- a/components/net/sal/src/sal_socket.c +++ b/components/net/sal/src/sal_socket.c @@ -11,6 +11,8 @@ #include #include + +#include #include #include