]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Ensure rl_message() gets prototype.
authorMark Andrews <marka@isc.org>
Tue, 11 Aug 2020 12:02:10 +0000 (22:02 +1000)
committerMark Andrews <marka@isc.org>
Tue, 11 Aug 2020 23:46:31 +0000 (09:46 +1000)
(cherry picked from commit fd126553d450320eab1094508f6f2d7c76d737f5)

bin/dig/nslookup.c
bin/nsupdate/nsupdate.c

index 7cf09f512f9b7ec80cae3d0eab659dc42143f35b..d8c3b380806de45df1b9af1ea0c239d2348a3dc0 100644 (file)
@@ -50,6 +50,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>
index b238b1838ca0239f9bf9e71396fadd3df680213b..e92e20fcc0f4ed29b8bdbed6ca2891a1391ea97c 100644 (file)
 #else /* if defined(HAVE_EDIT_READLINE_READLINE_H) */
 /* Prevent deprecated functions being declared. */
 #define _FUNCTION_DEF 1
-#include <readline/readline.h>
+/* Ensure rl_message() gets prototype. */
+#define USE_VARARGS   1
+#define PREFER_STDARG 1
 #include <readline/history.h>
+#include <readline/readline.h>
 #endif
 #endif