]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Stop deprecated functions being defined
authorMark Andrews <marka@isc.org>
Thu, 6 Aug 2020 07:52:48 +0000 (17:52 +1000)
committerMark Andrews <marka@isc.org>
Tue, 11 Aug 2020 23:42:34 +0000 (09:42 +1000)
(cherry picked from commit 1532a34658128c944defafbd5a76380bcbe7acb1)

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

index e54f1ac58f0c54f7a0ef890b65b38b5ddcf71530..7cf09f512f9b7ec80cae3d0eab659dc42143f35b 100644 (file)
@@ -48,6 +48,8 @@
 #elif defined(HAVE_EDITLINE_READLINE_H)
 #include <editline/readline.h>
 #elif defined(HAVE_READLINE_READLINE_H)
+/* Prevent deprecated functions being declared. */
+#define _FUNCTION_DEF 1
 #include <readline/readline.h>
 #if defined (HAVE_READLINE_HISTORY_H)
 #include <readline/history.h>
index fbd36c8af5f133bec57f932ed793ee8ef73b13db..b238b1838ca0239f9bf9e71396fadd3df680213b 100644 (file)
@@ -94,7 +94,9 @@
 #endif
 #elif defined(HAVE_EDITLINE_READLINE_H)
 #include <editline/readline.h>
-#else
+#else /* if defined(HAVE_EDIT_READLINE_READLINE_H) */
+/* Prevent deprecated functions being declared. */
+#define _FUNCTION_DEF 1
 #include <readline/readline.h>
 #include <readline/history.h>
 #endif