mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Merge branch '2045-readline-rltypedefs-h-35-22-error-this-function-declaration-is-not-a-prototype-on-netbsd-9' into 'main'
Resolve "readline/rltypedefs.h:35:22: error: this function declaration is not a prototype on NetBSD 9" Closes #2045 See merge request isc-projects/bind9!3926
This commit is contained in:
@@ -47,6 +47,11 @@
|
|||||||
#elif defined(HAVE_EDITLINE_READLINE_H)
|
#elif defined(HAVE_EDITLINE_READLINE_H)
|
||||||
#include <editline/readline.h>
|
#include <editline/readline.h>
|
||||||
#elif defined(HAVE_READLINE_READLINE_H)
|
#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>
|
#include <readline/readline.h>
|
||||||
#if defined(HAVE_READLINE_HISTORY_H)
|
#if defined(HAVE_READLINE_HISTORY_H)
|
||||||
#include <readline/history.h>
|
#include <readline/history.h>
|
||||||
|
@@ -103,6 +103,11 @@
|
|||||||
#elif defined(HAVE_EDITLINE_READLINE_H)
|
#elif defined(HAVE_EDITLINE_READLINE_H)
|
||||||
#include <editline/readline.h>
|
#include <editline/readline.h>
|
||||||
#else /* if defined(HAVE_EDIT_READLINE_READLINE_H) */
|
#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/history.h>
|
||||||
#include <readline/readline.h>
|
#include <readline/readline.h>
|
||||||
#endif /* if defined(HAVE_EDIT_READLINE_READLINE_H) */
|
#endif /* if defined(HAVE_EDIT_READLINE_READLINE_H) */
|
||||||
|
Reference in New Issue
Block a user