summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/net/at/include/at.h1
-rw-r--r--components/net/at/src/at_cli.c2
-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
5 files changed, 5 insertions, 1 deletions
diff --git a/components/net/at/include/at.h b/components/net/at/include/at.h
index 0e93720ff0..0a385058a0 100644
--- a/components/net/at/include/at.h
+++ b/components/net/at/include/at.h
@@ -12,6 +12,7 @@
#ifndef __AT_H__
#define __AT_H__
+#include <stddef.h>
#include <rtthread.h>
#ifdef __cplusplus
diff --git a/components/net/at/src/at_cli.c b/components/net/at/src/at_cli.c
index 25fbb708f4..c589bb68a0 100644
--- a/components/net/at/src/at_cli.c
+++ b/components/net/at/src/at_cli.c
@@ -11,7 +11,7 @@
#include <at.h>
#include <stdio.h>
#include <string.h>
-
+#include <stdint.h>
#include <rtthread.h>
#include <rtdevice.h>
#include <rthw.h>
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);