diff options
| author | Meco Man <[email protected]> | 2021-09-11 14:43:09 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-09-11 14:43:09 -0400 |
| commit | b35fffd6596265773021539ad42a0b1012784e11 (patch) | |
| tree | 1e3516d4e2b3a52a45bc3539ee5197c14972ce45 /components/net/sal_socket/include | |
| parent | ee55c58ce43cf2405481db11df187af3aff74eb4 (diff) | |
[remove rtlibc]修复缺失的头文件导致的报错
Diffstat (limited to 'components/net/sal_socket/include')
| -rw-r--r-- | components/net/sal_socket/include/sal_netdb.h | 1 | ||||
| -rw-r--r-- | components/net/sal_socket/include/sal_socket.h | 1 | ||||
| -rw-r--r-- | components/net/sal_socket/include/socket/netdb.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/components/net/sal_socket/include/sal_netdb.h b/components/net/sal_socket/include/sal_netdb.h index 50064ce343..9b1421270f 100644 --- a/components/net/sal_socket/include/sal_netdb.h +++ b/components/net/sal_socket/include/sal_netdb.h @@ -10,6 +10,7 @@ #ifndef SAL_NETDB_H__ #define SAL_NETDB_H__ +#include <stddef.h> #include "sal_socket.h" #ifdef __cplusplus diff --git a/components/net/sal_socket/include/sal_socket.h b/components/net/sal_socket/include/sal_socket.h index 497be47e41..c479d21c62 100644 --- a/components/net/sal_socket/include/sal_socket.h +++ b/components/net/sal_socket/include/sal_socket.h @@ -11,6 +11,7 @@ #ifndef SAL_SOCKET_H__ #define SAL_SOCKET_H__ +#include <stddef.h> #include <arpa/inet.h> #ifdef __cplusplus diff --git a/components/net/sal_socket/include/socket/netdb.h b/components/net/sal_socket/include/socket/netdb.h index 9d54953681..8394fddea5 100644 --- a/components/net/sal_socket/include/socket/netdb.h +++ b/components/net/sal_socket/include/socket/netdb.h @@ -16,6 +16,7 @@ extern "C" { #endif +#include <stddef.h> #include <sal_netdb.h> struct hostent *gethostbyname(const char *name); |
