1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 05:02:27 +02:00

windows fixes

This commit is contained in:
krakjoe
2013-11-28 17:21:34 +00:00
parent 26e1d57e8c
commit 022c621f96
2 changed files with 8 additions and 1 deletions

View File

@@ -27,12 +27,17 @@
#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;

View 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 {