From: Felipe Pena <felipe@php.net>
Date: Sat, 19 Feb 2011 16:32:00 +0000 (+0000)
Subject: - Fixed build
X-Git-Tag: php-5.4.0alpha1~191^2~218
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b98ceb5e40560523c0aaa0a0d63d1de13a1d27f6;p=php

- Fixed build
---

diff --git a/ext/readline/readline_cli.c b/ext/readline/readline_cli.c
index 45a43de722..cae160caae 100644
--- a/ext/readline/readline_cli.c
+++ b/ext/readline/readline_cli.c
@@ -68,6 +68,10 @@
 #include <dlfcn.h>
 #endif
 
+#ifndef RTLD_DEFAULT
+#define RTLD_DEFAULT NULL
+#endif
+
 #define DEFAULT_PROMPT "\\b \\> "
 
 ZEND_DECLARE_MODULE_GLOBALS(cli_readline);
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 2816e67885..45fa019b8a 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -1131,7 +1131,7 @@ int main(int argc, char *argv[])
 			}
 
 			if (interactive && cli_shell_callbacks.cli_shell_run) {
-				exit_status = cli_shell_callbacks.cli_shell_run();
+				exit_status = cli_shell_callbacks.cli_shell_run(TSRMLS_C);
 			} else {
 				php_execute_script(&file_handle TSRMLS_CC);
 				exit_status = EG(exit_status);