Browse Source

[Components] Fix compiling issue when remove finsh

BernardXiong 4 years ago
parent
commit
c0596e6c66
2 changed files with 2 additions and 1 deletions
  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"