Преглед на файлове

[fix] add the header file to avoid compiler error. (#5643)

xiangxistu преди 3 години
родител
ревизия
ffae7a2612
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      components/drivers/ipc/pipe.c
  2. 1 0
      components/libc/posix/io/mman/mman.c

+ 1 - 0
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.

+ 1 - 0
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"