diff options
Diffstat (limited to 'ext/readline')
| -rw-r--r-- | ext/readline/config.m4 | 2 | ||||
| -rw-r--r-- | ext/readline/readline.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ext/readline/config.m4 b/ext/readline/config.m4 index a320deeb42..a99262a659 100644 --- a/ext/readline/config.m4 +++ b/ext/readline/config.m4 @@ -65,7 +65,7 @@ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then elif test "$PHP_LIBEDIT" != "no"; then for i in $PHP_LIBEDIT /usr/local /usr; do - test -f $i/include/readline/readline.h && LIBEDIT_DIR=$i && break + test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break done if test -z "$LIBEDIT_DIR"; then diff --git a/ext/readline/readline.c b/ext/readline/readline.c index f27ce606ac..22cc8ae1e3 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -33,8 +33,10 @@ #define rl_completion_matches completion_matches #endif +#ifdef HAVE_LIBEDIT +#include <editline/readline.h> +#else #include <readline/readline.h> -#ifndef HAVE_LIBEDIT #include <readline/history.h> #endif |
