0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-25 11:58:39 +02:00

librb: only install WSA stubs if windows SDK does not provide them

This commit is contained in:
William Pitcock 2016-03-20 00:18:42 -05:00
parent b45a2f351e
commit b68dee9bcb

View file

@ -83,14 +83,37 @@ char *alloca();
char *rb_strerror(int error);
#ifndef ENOBUFS
#define ENOBUFS WSAENOBUFS
#endif
#ifndef EINPROGRESS
#define EINPROGRESS WSAEINPROGRESS
#endif
#ifndef EWOULDBLOCK
#define EWOULDBLOCK WSAEWOULDBLOCK
#endif
#ifndef EMSGSIZE
#define EMSGSIZE WSAEMSGSIZE
#endif
#ifndef EALREADY
#define EALREADY WSAEALREADY
#endif
#ifndef EISCONN
#define EISCONN WSAEISCONN
#endif
#ifndef EADDRINUSE
#define EADDRINUSE WSAEADDRINUSE
#endif
#ifndef EAFNOSUPPORT
#define EAFNOSUPPORT WSAEAFNOSUPPORT
#endif
#define pipe(x) _pipe(x, 1024, O_BINARY)
#define ioctl(x,y,z) ioctlsocket(x,y, (u_long *)z)