From 27b4225b3c81aefc0ded9bf62d0873e72725664d Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 3 May 2018 09:12:26 -0400 Subject: stdio_names: Ensure MAX_NAMES is defined before use, don't use 3 directly With tighter build flags the fact that doesn't have a reference back to MAX_NAMES causes an error. Include here and then in common/console.c use MAX_NAMES rather than 3 when working with stdio_names. Reported-by: Peter Robinson Signed-off-by: Tom Rini Tested-by: Peter Robinson --- include/stdio_dev.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/stdio_dev.h') diff --git a/include/stdio_dev.h b/include/stdio_dev.h index 1ea8bff47ba..c2a88b4fc41 100644 --- a/include/stdio_dev.h +++ b/include/stdio_dev.h @@ -8,6 +8,7 @@ #ifndef _STDIO_DEV_H_ #define _STDIO_DEV_H_ +#include #include /* -- cgit v1.2.3