From c9f3869a414725c352b989b76b16591a7bc58da4 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 1 Feb 2017 14:37:30 +0200 Subject: [PATCH] targets: zephyr: Follow Zephyr 1.7-pre on console refactors. (#1548) JerryScript-DCO-1.0-Signed-off-by: Paul Sokolovsky paul.sokolovsky@linaro.org --- targets/zephyr/src/getline-zephyr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/targets/zephyr/src/getline-zephyr.c b/targets/zephyr/src/getline-zephyr.c index b5fef0d45..b64489b8f 100644 --- a/targets/zephyr/src/getline-zephyr.c +++ b/targets/zephyr/src/getline-zephyr.c @@ -15,19 +15,20 @@ #include #include +#include #include #include "getline-zephyr.h" /* While app processes one input line, Zephyr will have another line buffer to accumulate more console input. */ -static struct uart_console_input line_bufs[2]; +static struct console_input line_bufs[2]; static struct k_fifo free_queue; static struct k_fifo used_queue; char *zephyr_getline(void) { - static struct uart_console_input *cmd; + static struct console_input *cmd; /* Recycle cmd buffer returned previous time */ if (cmd != NULL)