diff options
Diffstat (limited to 'sapi/cli/php_cli_readline.c')
-rw-r--r-- | sapi/cli/php_cli_readline.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sapi/cli/php_cli_readline.c b/sapi/cli/php_cli_readline.c index ccdf6bd8f8..301a1534a2 100644 --- a/sapi/cli/php_cli_readline.c +++ b/sapi/cli/php_cli_readline.c @@ -20,6 +20,9 @@ /* $Id$ */ #include "php.h" + +#if (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE) + #include "php_globals.h" #include "php_variables.h" #include "zend_hash.h" @@ -42,20 +45,16 @@ #include <unixlib/local.h> #endif -#if HAVE_LIBREADLINE || HAVE_LIBEDIT #include <readline/readline.h> #if !HAVE_LIBEDIT #include <readline/history.h> #endif -#endif /* HAVE_LIBREADLINE || HAVE_LIBEDIT */ #include "zend_compile.h" #include "zend_execute.h" #include "zend_highlight.h" #include "zend_indent.h" -#if HAVE_LIBREADLINE || HAVE_LIBEDIT - /* {{{ cli_is_valid_code */ typedef enum { |