summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2004-01-15 19:37:45 +0000
committerobrien <obrien@FreeBSD.org>2004-01-15 19:37:45 +0000
commit8e12bab4c9847240a5b7e82713ff33460041cf62 (patch)
tree3647827544841159b30f4c02a0847298f7329a1a /contrib
parent32b034d034b5eb777a4e1f90afab9e5da09082db (diff)
downloadFreeBSD-src-8e12bab4c9847240a5b7e82713ff33460041cf62.zip
FreeBSD-src-8e12bab4c9847240a5b7e82713ff33460041cf62.tar.gz
Provide an escape to our "savestring" compatibility with ancient readline
versions madness. Define 'RL_NO_COMPAT' and be worry free.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libreadline/readline.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/libreadline/readline.h b/contrib/libreadline/readline.h
index d42510d..c142bb4 100644
--- a/contrib/libreadline/readline.h
+++ b/contrib/libreadline/readline.h
@@ -430,7 +430,7 @@ extern char *rl_filename_completion_function PARAMS((const char *, int));
extern int rl_completion_mode PARAMS((rl_command_func_t *));
-#if 1
+#if !defined(RL_NO_COMPAT)
/* Backwards compatibility (compat.c). These will go away sometime. */
extern void free_undo_list PARAMS((void));
extern int maybe_save_line PARAMS((void));
@@ -793,10 +793,12 @@ struct readline_state {
extern int rl_save_state PARAMS((struct readline_state *));
extern int rl_restore_state PARAMS((struct readline_state *));
+#if !defined(RL_NO_COMPAT)
#if !defined (savestring)
#define savestring rl_savestring
extern char *savestring __P((char *)); /* XXX backwards compatibility */
#endif
+#endif
#ifdef __cplusplus
}
OpenPOWER on IntegriCloud