summaryrefslogtreecommitdiff
path: root/lib/replace/system
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2017-11-19 20:22:33 +0000
committerAndrew Bartlett <abartlet@samba.org>2017-11-24 05:16:10 +0100
commit926e7a7cb46ef2b243f1247eee48c87ea546849b (patch)
tree3a927cebbae993bf5d5fb0d0834ae7cac359b85f /lib/replace/system
parent16cedcb173da89a9d6f8894e6ff4a42158c5c3b2 (diff)
downloadsamba-926e7a7cb46ef2b243f1247eee48c87ea546849b.tar.gz
lib/replace: apply readline -Wstrict-prototypes workaround
clang -Wstrict-prototypes has issues with readline > 6.3. Fix suggested by Timur I. Bakeyev <timur@freebsd.org> cf. https://lists.gnu.org/archive/html/bug-readline/2014-04/msg00018.html cf. https://lists.samba.org/archive/samba-technical/2017-November/123923.html Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Nov 24 05:16:10 CET 2017 on sn-devel-144
Diffstat (limited to 'lib/replace/system')
-rw-r--r--lib/replace/system/readline.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/replace/system/readline.h b/lib/replace/system/readline.h
index e6b8fb9129b..5dc3e75dd3d 100644
--- a/lib/replace/system/readline.h
+++ b/lib/replace/system/readline.h
@@ -26,6 +26,9 @@
#ifdef HAVE_LIBREADLINE
# ifdef HAVE_READLINE_READLINE_H
+# ifdef HAVE_READLINE_READLINE_WORKAROUND
+# define _FUNCTION_DEF
+# endif
# include <readline/readline.h>
# ifdef HAVE_READLINE_HISTORY_H
# include <readline/history.h>