diff options
| author | guozhanxin <[email protected]> | 2023-11-16 14:07:58 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2023-11-16 16:25:37 +0800 |
| commit | c9a63df925467d737f8c0002236b7d12a373344c (patch) | |
| tree | 61af1bcafc4c2de1411a323450fa70da489d0afb | |
| parent | 1b59c20203f57ba38359f34f5ee3951bd3888d02 (diff) | |
[fix] sal build error.
| -rw-r--r-- | components/libc/compilers/common/extension/sys/stat.h | 2 | ||||
| -rw-r--r-- | components/net/sal/src/sal_socket.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 <rtthread.h> #include <rthw.h> + +#include <string.h> #include <sys/time.h> #include <sys/ioctl.h> |
