From ffae7a26123504d9f61f3619bae8f743f94d613d Mon Sep 17 00:00:00 2001 From: xiangxistu <52819708+xiangxistu@users.noreply.github.com> Date: Tue, 8 Mar 2022 11:35:11 +0800 Subject: [PATCH] [fix] add the header file to avoid compiler error. (#5643) --- components/drivers/ipc/pipe.c | 1 + components/libc/posix/io/mman/mman.c | 1 + 2 files changed, 2 insertions(+) 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 #include #include +#include /** * @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 #include #include +#include #include "sys/mman.h" -- GitLab