summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/readline/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index c035b67c54f..e34ee1ef145 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -1613,7 +1613,7 @@ Init_readline()
if (history_get(history_get_offset_func(0)) == NULL) {
history_get_offset_func = history_get_offset_0;
}
-#if !defined HAVE_CLEAR_HISTORY
+#if defined HAVE_CLEAR_HISTORY
clear_history();
#else
{