]> granicus.if.org Git - php/commitdiff
fix windows build
authorkrakjoe <joe.watkins@live.co.uk>
Sun, 1 Dec 2013 08:55:37 +0000 (08:55 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Sun, 1 Dec 2013 08:55:37 +0000 (08:55 +0000)
phpdbg.c

index 3ac0b09e8856bb5c8391a42f819b487b8eea5743..602cc0bddaadd44d03b9921518ac4748432a1eca 100644 (file)
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -942,16 +942,24 @@ phpdbg_main:
                /* do not install sigint handlers for remote consoles */
                /* sending SIGINT then provides a decent way of shutting down the server */
 #ifdef ZEND_SIGNALS
+# ifndef _WIN32
                if (listen[0] < 0) {
+# endif
                        zend_try {
                                zend_signal_activate(TSRMLS_C);
                                zend_signal(SIGINT, phpdbg_sigint_handler TSRMLS_CC);
                        } zend_end_try();
+# ifndef _WIN32
                }
+# endif
 #else
+# ifndef _WIN32
                if (listen[0] < 0) {
+# endif
                        signal(SIGINT, phpdbg_sigint_handler);
+#ifndef _WIN32
                }
+#endif
 #endif
 
                PG(modules_activated) = 0;