mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-29 01:49:02 -04:00
Ensure rl_message() gets prototype.
(cherry picked from commit fd126553d4)
This commit is contained in:
parent
ea4457be88
commit
cbcb265a5b
2 changed files with 6 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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) */
|
||||
|
|
|
|||
Loading…
Reference in a new issue