瀏覽代碼

[Components] Fix compiling issue when remove finsh

BernardXiong 5 年之前
父節點
當前提交
c0596e6c66
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      components/drivers/mtd/mtd_nand.c
  2. 1 0
      components/drivers/spi/spi_flash_sfud.c

+ 1 - 1
components/drivers/mtd/mtd_nand.c

@@ -11,7 +11,7 @@
 /*
  * COPYRIGHT (C) 2012, Shanghai Real Thread
  */
-
+#include <string.h>
 #include <drivers/mtd_nand.h>
 
 #ifdef RT_USING_MTD_NAND

+ 1 - 0
components/drivers/spi/spi_flash_sfud.c

@@ -9,6 +9,7 @@
  */
 
 #include <stdint.h>
+#include <string.h>
 #include <rtdevice.h>
 #include "spi_flash.h"
 #include "spi_flash_sfud.h"