From 022c621f96c9fa6e45242ef541becf35ce06ded1 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Thu, 28 Nov 2013 17:21:34 +0000 Subject: [PATCH] windows fixes --- phpdbg.c | 7 +++++++ phpdbg_bp.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/phpdbg.c b/phpdbg.c index f5aaba85d1..39963a5698 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -27,12 +27,17 @@ #include "phpdbg_utils.h" #include "phpdbg_set.h" +#ifndef _WIN32 #include #include #include #include #include #include +#else +#include +#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; diff --git a/phpdbg_bp.h b/phpdbg_bp.h index 0cbddc065c..cf90330083 100644 --- a/phpdbg_bp.h +++ b/phpdbg_bp.h @@ -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 { -- 2.50.1