From b0cabfd265c475c2726dfc7d7cfb22050bb21f5e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 13 Dec 2018 18:45:14 +0100 Subject: [PATCH] replace: Fix checking for config.h #define in readline.h Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- lib/replace/system/readline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/replace/system/readline.h b/lib/replace/system/readline.h index 5dc3e75dd3d..29379626e0d 100644 --- a/lib/replace/system/readline.h +++ b/lib/replace/system/readline.h @@ -48,7 +48,7 @@ #ifdef HAVE_NEW_LIBREADLINE #ifdef HAVE_CPPFUNCTION # define RL_COMPLETION_CAST (CPPFunction *) -#elif HAVE_RL_COMPLETION_T +#elif defined(HAVE_RL_COMPLETION_T) # define RL_COMPLETION_CAST (rl_completion_t *) #else # define RL_COMPLETION_CAST