diff --git a/nshlib/nsh.h b/nshlib/nsh.h index 2dee86b87..b842bb70e 100644 --- a/nshlib/nsh.h +++ b/nshlib/nsh.h @@ -50,6 +50,10 @@ #include #include +#ifdef CONFIG_NSH_STRERROR +# include +#endif + #include /**************************************************************************** diff --git a/system/flash_eraseall/Kconfig b/system/flash_eraseall/Kconfig index 16c6e5c13..032df07bd 100644 --- a/system/flash_eraseall/Kconfig +++ b/system/flash_eraseall/Kconfig @@ -6,7 +6,7 @@ config SYSTEM_FLASH_ERASEALL bool "FLASH eraseall tool" default n - depends on MTD && NSH_BUILTIN_APPS & !NUTTX_KERNEL + depends on MTD && NSH_BUILTIN_APPS && !NUTTX_KERNEL ---help--- Enable support for the FLASH eraseall tool.