summaryrefslogtreecommitdiff
path: root/components/net/sal_socket/include
diff options
context:
space:
mode:
authorliukangcc <[email protected]>2021-09-17 15:03:14 +0800
committerliukangcc <[email protected]>2021-09-17 15:03:14 +0800
commit4b3df6010f7870aebcd1df20bbaabd5fe9212c6d (patch)
tree95b0e12447425f803be46d16eaf6e7188c364fec /components/net/sal_socket/include
parentf07507a91310bc5696a08f5bbf6ab8679cfbcf73 (diff)
parentef71de34f76d4403fcd2cddd21a17f3a53a40296 (diff)
Merge remote-tracking branch 'remotes/rtt_github/master'
Diffstat (limited to 'components/net/sal_socket/include')
-rw-r--r--components/net/sal_socket/include/sal_netdb.h1
-rw-r--r--components/net/sal_socket/include/sal_socket.h1
-rw-r--r--components/net/sal_socket/include/socket/netdb.h1
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);