summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.h
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2014-06-23 10:04:40 +0200
committerRemi Collet <remi@php.net>2014-06-23 10:04:40 +0200
commit86bafec836b81070547399b890c5b01897250a31 (patch)
tree36d14adfe37aa9960410ba6df5a53b5832db86c9 /sapi/phpdbg/phpdbg.h
parentf08a5bfadc360cb53574bdb2f4dc32ac30636133 (diff)
downloadphp-git-86bafec836b81070547399b890c5b01897250a31.tar.gz
Fix https://github.com/krakjoe/phpdbg/issues/91
Enable edit feature when build with libedit. Notice: coloured prompt only enable with READLINE
Diffstat (limited to 'sapi/phpdbg/phpdbg.h')
-rw-r--r--sapi/phpdbg/phpdbg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg.h b/sapi/phpdbg/phpdbg.h
index 12350d5425..b2e7a03c21 100644
--- a/sapi/phpdbg/phpdbg.h
+++ b/sapi/phpdbg/phpdbg.h
@@ -64,7 +64,7 @@
# include "TSRM.h"
#endif
-#ifdef HAVE_LIBREADLINE
+#if defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDIT)
# include <readline/readline.h>
# include <readline/history.h>
#endif