diff options
author | Felipe Pena <felipe@php.net> | 2009-12-13 17:06:47 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-12-13 17:06:47 +0000 |
commit | 4411621217dfc40dcb544684b33d5cf863d63e01 (patch) | |
tree | 1fab22470c891dbea62cf364a9541d513675dbf9 /sapi/cli/php_cli.c | |
parent | eb3eea266954a1ce26ebd7c3cad546d2eab7fb41 (diff) | |
download | php-git-4411621217dfc40dcb544684b33d5cf863d63e01.tar.gz |
- Fixed bug #50209 (Compiling with libedit cannot find readline.h)
(patch by tcallawa at redhat dot com)
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index c4474d4c4e..d5878a54e7 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -76,8 +76,10 @@ #endif #if (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE) +#if HAVE_LIBEDIT +#include <editline/readline.h> +#else #include <readline/readline.h> -#if !HAVE_LIBEDIT #include <readline/history.h> #endif #include "php_cli_readline.h" |