diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/nshlib/nsh.h | 4 | ||||
-rw-r--r-- | apps/system/flash_eraseall/Kconfig | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h index 2dee86b87..b842bb70e 100644 --- a/apps/nshlib/nsh.h +++ b/apps/nshlib/nsh.h @@ -50,6 +50,10 @@ #include <unistd.h> #include <errno.h> +#ifdef CONFIG_NSH_STRERROR +# include <string.h> +#endif + #include <nuttx/usb/usbdev_trace.h> /**************************************************************************** diff --git a/apps/system/flash_eraseall/Kconfig b/apps/system/flash_eraseall/Kconfig index 16c6e5c13..032df07bd 100644 --- a/apps/system/flash_eraseall/Kconfig +++ b/apps/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. |