mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
MFT: VC10 build support
This commit is contained in:
parent
0f0f5f229b
commit
1063c8346b
6 changed files with 33 additions and 10 deletions
|
@ -41,6 +41,12 @@
|
|||
# include "php_sockets.h"
|
||||
# include "win32/sockets.h"
|
||||
# define IS_INVALID_SOCKET(a) (a->bsd_socket == INVALID_SOCKET)
|
||||
# ifdef EPROTONOSUPPORT
|
||||
# undef EPROTONOSUPPORT
|
||||
# endif
|
||||
# ifdef ECONNRESET
|
||||
# undef ECONNRESET
|
||||
# endif
|
||||
# define EPROTONOSUPPORT WSAEPROTONOSUPPORT
|
||||
# define ECONNRESET WSAECONNRESET
|
||||
# ifdef errno
|
||||
|
|
|
@ -42,9 +42,12 @@ PHPAPI int flock(int fd, int operation);
|
|||
#define PHP_LOCK_NB 4
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
# define fsync _commit
|
||||
# define ftruncate(a, b) chsize(a, b)
|
||||
# ifdef EWOULDBLOCK
|
||||
# undef EWOULDBLOCK
|
||||
# endif
|
||||
# define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
# define fsync _commit
|
||||
# define ftruncate(a, b) chsize(a, b)
|
||||
#endif /* defined(PHP_WIN32) */
|
||||
|
||||
#if !HAVE_INET_ATON
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue