mirror of
https://github.com/matrix-construct/construct
synced 2024-10-17 13:08:53 +02:00
commio: win32 fixes
This commit is contained in:
parent
17e4e6af83
commit
7dbf237f93
1 changed files with 3 additions and 1 deletions
|
@ -1609,7 +1609,7 @@ rb_inet_socketpair_udp(rb_fde_t **newF1, rb_fde_t **newF2)
|
||||||
struct sockaddr_in addr[2];
|
struct sockaddr_in addr[2];
|
||||||
rb_socklen_t size = sizeof(struct sockaddr_in);
|
rb_socklen_t size = sizeof(struct sockaddr_in);
|
||||||
rb_fde_t *F[2];
|
rb_fde_t *F[2];
|
||||||
unsigned rb_platform_fd_t fd[2];
|
rb_platform_fd_t fd[2];
|
||||||
int i, got;
|
int i, got;
|
||||||
unsigned short port;
|
unsigned short port;
|
||||||
struct timeval wait = { 0, 100000 };
|
struct timeval wait = { 0, 100000 };
|
||||||
|
@ -1693,7 +1693,9 @@ rb_inet_socketpair_udp(rb_fde_t **newF1, rb_fde_t **newF2)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#ifndef ECONNABORTED
|
||||||
#define ECONNABORTED WSAECONNABORTED
|
#define ECONNABORTED WSAECONNABORTED
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
abort_failed:
|
abort_failed:
|
||||||
|
|
Loading…
Reference in a new issue