]> granicus.if.org Git - php/commitdiff
- Fixed build
authorFelipe Pena <felipe@php.net>
Sat, 19 Feb 2011 16:32:00 +0000 (16:32 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 19 Feb 2011 16:32:00 +0000 (16:32 +0000)
ext/readline/readline_cli.c
sapi/cli/php_cli.c

index 45a43de72223edcaa1390d9db492465518ac28f1..cae160caaeb132f64722e13e8d6f3ad0510dbc66 100644 (file)
 #include <dlfcn.h>
 #endif
 
+#ifndef RTLD_DEFAULT
+#define RTLD_DEFAULT NULL
+#endif
+
 #define DEFAULT_PROMPT "\\b \\> "
 
 ZEND_DECLARE_MODULE_GLOBALS(cli_readline);
index 2816e6788588328781e473766579b7c6d7f54a34..45fa019b8ab99cc42f2ddeaff1e758fa55fa84e8 100644 (file)
@@ -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);