]> granicus.if.org Git - php/commitdiff
windows fixes
authorkrakjoe <joe.watkins@live.co.uk>
Thu, 28 Nov 2013 17:21:34 +0000 (17:21 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Thu, 28 Nov 2013 17:21:34 +0000 (17:21 +0000)
phpdbg.c
phpdbg_bp.h

index f5aaba85d1f5e99c8544b67a1a493989d0d7f970..39963a5698a08a75fa2e08103aca4b4f823ff811 100644 (file)
--- a/phpdbg.c
+++ b/phpdbg.c
 #include "phpdbg_utils.h"
 #include "phpdbg_set.h"
 
+#ifndef _WIN32
 #include <sys/socket.h>
 #include <sys/select.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <arpa/inet.h>
+#else
+#include <Winsock2.h>
+#define SHUT_RDWR SD_BOTH
+#endif
 
 ZEND_DECLARE_MODULE_GLOBALS(phpdbg);
 
@@ -929,7 +934,9 @@ phpdbg_main:
                if (streams[0] && streams[1]) {
                        PHPDBG_G(flags) |= PHPDBG_IS_REMOTE;
                        
+#ifndef _WIN32
                        signal(SIGPIPE, SIG_IGN);
+#endif
                }
                
                PHPDBG_G(io)[PHPDBG_STDIN] = stdin;
index 0cbddc065c3c381a8aed42a82291bb5364f11408..cf9033008363d10e7cbf9bb082c488351590b720 100644 (file)
@@ -28,7 +28,7 @@ typedef struct _zend_op *phpdbg_opline_ptr_t; /* }}} */
        int                     id; \
        zend_uchar  type; \
        zend_ulong  hits; \
-       const char  *name; /* }}} */
+       const char  *name /* }}} */
 
 /* {{{ breakpoint base */
 typedef struct _phpdbg_breakbase_t {