summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-05-03 09:12:26 -0400
committerTom Rini <trini@konsulko.com>2018-05-06 13:35:16 -0400
commit27b4225b3c81aefc0ded9bf62d0873e72725664d (patch)
tree001ceb67dce389777a2e756c631074c20c0154af /include
parentdba8070f447d9490406005b3f16f225effc85893 (diff)
stdio_names: Ensure MAX_NAMES is defined before use, don't use 3 directly
With tighter build flags the fact that <stdio_dev.h> doesn't have a reference back to MAX_NAMES causes an error. Include <stdio.h> here and then in common/console.c use MAX_NAMES rather than 3 when working with stdio_names. Reported-by: Peter Robinson <pbrobinson@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com> Tested-by: Peter Robinson <pbrobinson@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/stdio_dev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdio_dev.h b/include/stdio_dev.h
index 1ea8bff47b..c2a88b4fc4 100644
--- a/include/stdio_dev.h
+++ b/include/stdio_dev.h
@@ -8,6 +8,7 @@
#ifndef _STDIO_DEV_H_
#define _STDIO_DEV_H_
+#include <stdio.h>
#include <linux/list.h>
/*