From 669a6922f39189c86250c63ade047fcea5076fff Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Thu, 4 May 2017 15:49:22 +0200 Subject: [PATCH] sys/shell: fix build when SHELL_NO_ECHO is defined When SHELL_NO_ECHO was defined and not SHELL_NO_PROMPT build was broken because _putchar was not defined. This define _putchar when one of SHELL_NO_PROMPT or SHELL_NO_ECHO is not defined. --- sys/shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/shell.c b/sys/shell/shell.c index 5b1d5d02db..67b7b830e2 100644 --- a/sys/shell/shell.c +++ b/sys/shell/shell.c @@ -32,7 +32,7 @@ #include "shell.h" #include "shell_commands.h" -#ifndef SHELL_NO_ECHO +#if !defined(SHELL_NO_ECHO) || !defined(SHELL_NO_PROMPT) #ifdef MODULE_NEWLIB /* use local copy of putchar, as it seems to be inlined, * enlarging code by 50% */