[PATCH 5/8] sandbox: stdio: fix ctrlc link error when CONFIG_CONSOLE_NONE=y
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri May 17 06:26:53 PDT 2024
While sandbox defines arch_ctrlc() unconditionally, ctrlc() is not
defined when CONFIG_CONSOLE_NONE=y for all architectures, so we need the
inline stub on sandbox too to avoid a link error.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/stdio.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/stdio.h b/include/stdio.h
index b6ded805cc21..d53f29039376 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -60,13 +60,11 @@ static inline int vprintf(const char *fmt, va_list args)
return 0;
}
-#ifndef CONFIG_ARCH_HAS_CTRLC
/* test if ctrl-c was pressed */
static inline int ctrlc (void)
{
return 0;
}
-#endif /* CONFIG_ARCH_HAS_CTRLC */
#endif
--
2.39.2
More information about the barebox
mailing list