From c9a63df925467d737f8c0002236b7d12a373344c Mon Sep 17 00:00:00 2001 From: guozhanxin Date: Thu, 16 Nov 2023 14:07:58 +0800 Subject: [PATCH] [fix] sal build error. --- components/libc/compilers/common/extension/sys/stat.h | 2 +- components/net/sal/src/sal_socket.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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