summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernardXiong <[email protected]>2021-09-11 18:09:22 +0800
committerBernardXiong <[email protected]>2021-09-11 18:09:22 +0800
commit0b13409c16326f142597570b50bdea8e138da606 (patch)
tree94b1a099edaf910a332dac3e988f22ed85613ba0 /components
parent3dc820b3717637c4b2a54f12ab09f64037e97e9f (diff)
[BSP] fix compiling issue with libc
Diffstat (limited to 'components')
-rw-r--r--components/drivers/include/drivers/pm.h1
-rw-r--r--components/drivers/phy/phy.c2
-rw-r--r--components/net/netdev/src/netdev.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/pm.h b/components/drivers/include/drivers/pm.h
index 51bff54ebb..d38c0a4e2a 100644
--- a/components/drivers/include/drivers/pm.h
+++ b/components/drivers/include/drivers/pm.h
@@ -15,6 +15,7 @@
#ifndef __PM_H__
#define __PM_H__
+#include <stdint.h>
#include <rtthread.h>
#ifndef PM_HAS_CUSTOM_CONFIG
diff --git a/components/drivers/phy/phy.c b/components/drivers/phy/phy.c
index 6d408ce612..87152a306e 100644
--- a/components/drivers/phy/phy.c
+++ b/components/drivers/phy/phy.c
@@ -8,7 +8,7 @@
* Date Author Notes
* 2020-09-27 wangqiang first version
*/
-
+#include <stddef.h>
#include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>
diff --git a/components/net/netdev/src/netdev.c b/components/net/netdev/src/netdev.c
index 26451cb007..4c5d524510 100644
--- a/components/net/netdev/src/netdev.c
+++ b/components/net/netdev/src/netdev.c
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include <rtthread.h>
#include <rthw.h>