diff options
author | Remi Collet <remi@php.net> | 2014-06-23 10:17:43 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2014-06-23 10:21:19 +0200 |
commit | 0da5d94a6c840af835a5b5d8bc4284a588d727bf (patch) | |
tree | 71d26797f357eb0fe763e65b793a723653c212b5 /sapi/phpdbg/phpdbg.h | |
parent | 0febafcfbe3e35f4a230430368ba931f19f8e957 (diff) | |
download | php-git-0da5d94a6c840af835a5b5d8bc4284a588d727bf.tar.gz |
Better fix for phpdbg + libedit
- fix include
- disable coloured prompt only with libedit
Diffstat (limited to 'sapi/phpdbg/phpdbg.h')
-rw-r--r-- | sapi/phpdbg/phpdbg.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg.h b/sapi/phpdbg/phpdbg.h index b2e7a03c21..eb4faf1f94 100644 --- a/sapi/phpdbg/phpdbg.h +++ b/sapi/phpdbg/phpdbg.h @@ -64,10 +64,13 @@ # include "TSRM.h" #endif -#if defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDIT) +#ifdef LIBREADLINE # include <readline/readline.h> # include <readline/history.h> #endif +#ifdef HAVE_LIBEDIT +# include <editline/readline.h> +#endif #include "phpdbg_lexer.h" #include "phpdbg_cmd.h" |