From c437bbc4d1e36a61f1080f09bbdffde4ef9a7c41 Mon Sep 17 00:00:00 2001 From: Michael Black Date: Wed, 15 Jan 2020 16:10:35 -0600 Subject: [PATCH] Fix mingw32 build --- tests/ampctl_parse.c | 2 +- tests/rigctl_parse.c | 2 +- tests/rotctl_parse.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ampctl_parse.c b/tests/ampctl_parse.c index 1557c4bb2..1e9cb1a1b 100644 --- a/tests/ampctl_parse.c +++ b/tests/ampctl_parse.c @@ -99,10 +99,10 @@ static pthread_mutex_t amp_mutex = PTHREAD_MUTEX_INITIALIZER; #define ARG_OUT (ARG_OUT1|ARG_OUT2|ARG_OUT3|ARG_OUT4) /* variables for readline support */ -#ifdef HAVE_LIBREADLINE static char *input_line = (char *)NULL; static char *result = (char *)NULL; static char *parsed_input[sizeof(char *) * 7]; +#ifdef HAVE_LIBREADLINE static const int have_rl = 1; #ifdef HAVE_READLINE_HISTORY diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index 572d7b7bb..0b68f3445 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -95,10 +95,10 @@ extern int read_history(); #define ARG_OUT (ARG_OUT1|ARG_OUT2|ARG_OUT3|ARG_OUT4) /* variables for readline support */ -#ifdef HAVE_LIBREADLINE static char *input_line = (char *)NULL; static char *result = (char *)NULL; static char *parsed_input[sizeof(char *) * 5]; +#ifdef HAVE_LIBREADLINE static const int have_rl = 1; #ifdef HAVE_READLINE_HISTORY diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index 77f8f06e9..af67126f5 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -116,9 +116,9 @@ static pthread_mutex_t rot_mutex = PTHREAD_MUTEX_INITIALIZER; /* variables for readline support */ static char *input_line = (char *)NULL; -#ifdef HAVE_LIBREADLINE static char *result = (char *)NULL; static char *parsed_input[sizeof(char *) * 7]; +#ifdef HAVE_LIBREADLINE static const int have_rl = 1; #ifdef HAVE_READLINE_HISTORY