Ensure rl_message() gets prototype.

(cherry picked from commit fd126553d4)
This commit is contained in:
Mark Andrews 2020-08-11 22:02:10 +10:00
parent ea4457be88
commit cbcb265a5b
2 changed files with 6 additions and 0 deletions

View file

@ -48,6 +48,9 @@
#elif defined(HAVE_READLINE_READLINE_H)
/* Prevent deprecated functions being declared. */
#define _FUNCTION_DEF 1
/* Ensure rl_message() gets prototype. */
#define USE_VARARGS 1
#define PREFER_STDARG 1
#include <readline/readline.h>
#if defined(HAVE_READLINE_HISTORY_H)
#include <readline/history.h>

View file

@ -95,6 +95,9 @@
#else /* if defined(HAVE_EDIT_READLINE_READLINE_H) */
/* Prevent deprecated functions being declared. */
#define _FUNCTION_DEF 1
/* Ensure rl_message() gets prototype. */
#define USE_VARARGS 1
#define PREFER_STDARG 1
#include <readline/history.h>
#include <readline/readline.h>
#endif /* if defined(HAVE_EDIT_READLINE_READLINE_H) */