summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorxiangxistu <[email protected]>2022-03-08 11:35:11 +0800
committerGitHub <[email protected]>2022-03-08 11:35:11 +0800
commitffae7a26123504d9f61f3619bae8f743f94d613d (patch)
treeb97b7b80a419abf1d3ffd83eb62984408686007c /components
parent0a8dd10b0bb73a8c52b7c9132bdb9ce8202a18bb (diff)
[fix] add the header file to avoid compiler error. (#5643)
Diffstat (limited to 'components')
-rw-r--r--components/drivers/ipc/pipe.c1
-rw-r--r--components/libc/posix/io/mman/mman.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/ipc/pipe.c b/components/drivers/ipc/pipe.c
index 3a2ad4104d..60a3683dae 100644
--- a/components/drivers/ipc/pipe.c
+++ b/components/drivers/ipc/pipe.c
@@ -18,6 +18,7 @@
#include <fcntl.h>
#include <poll.h>
#include <sys/ioctl.h>
+#include <dfs_file.h>
/**
* @brief This function will open a pipe.
diff --git a/components/libc/posix/io/mman/mman.c b/components/libc/posix/io/mman/mman.c
index d484b3ed7b..de76bdf314 100644
--- a/components/libc/posix/io/mman/mman.c
+++ b/components/libc/posix/io/mman/mman.c
@@ -15,6 +15,7 @@
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
+#include <sys/errno.h>
#include "sys/mman.h"