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:
7
phpdbg.c
7
phpdbg.c
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user