summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJan Lehnardt <jan@php.net>2002-10-09 18:59:15 +0000
committerJan Lehnardt <jan@php.net>2002-10-09 18:59:15 +0000
commit6b3234f3d44dbd523babe3eea3f7c79287670df6 (patch)
tree0b87109f2250e1575699c0fb094c83a9446f7224 /ext
parent2c4aa71d329a315b02781b0b20ea75032b0c1c8c (diff)
downloadphp-git-6b3234f3d44dbd523babe3eea3f7c79287670df6.tar.gz
- fix build on FreeBSD, verified by thies.
Diffstat (limited to 'ext')
-rw-r--r--ext/readline/readline.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index b4cf2ca429..eba06c3b6c 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -38,7 +38,9 @@ PHP_FUNCTION(readline);
PHP_FUNCTION(readline_add_history);
PHP_FUNCTION(readline_info);
PHP_FUNCTION(readline_clear_history);
+#ifndef HAVE_LIBEDIT
PHP_FUNCTION(readline_list_history);
+#endif
PHP_FUNCTION(readline_read_history);
PHP_FUNCTION(readline_write_history);
PHP_FUNCTION(readline_completion_function);
@@ -57,7 +59,7 @@ static zend_function_entry php_readline_functions[] = {
PHP_FE(readline_info, NULL)
PHP_FE(readline_add_history, NULL)
PHP_FE(readline_clear_history, NULL)
-#ifdef HAVE_LIBREADLINE
+#ifndef HAVE_LIBEDIT
PHP_FE(readline_list_history, NULL)
#endif
PHP_FE(readline_read_history, NULL)
@@ -256,7 +258,7 @@ PHP_FUNCTION(readline_clear_history)
/* }}} */
/* {{{ proto array readline_list_history(void)
Lists the history */
-#ifdef HAVE_LIBREADLINE
+#ifndef HAVE_LIBEDIT
PHP_FUNCTION(readline_list_history)
{
HIST_ENTRY **history;