* Add missing EWOULDBLOCK define.
[ADNS]
* Make sure we get the intended EWOULDBLOCK here.

svn path=/trunk/; revision=62992
This commit is contained in:
Amine Khaldi 2014-04-26 17:46:43 +00:00
parent 1bf5033020
commit 6e47994153
2 changed files with 10 additions and 0 deletions

View file

@ -69,6 +69,8 @@ extern "C" {
#define EDEADLOCK EDEADLK
#define EWOULDBLOCK 140
#ifdef __cplusplus
}
#endif

View file

@ -108,7 +108,15 @@ extern "C"
#define ADNS_CLEAR_ERRNO {WSASetLastError(errno = 0);}
#define ENOBUFS WSAENOBUFS
/* FIXME: there are two types of defines for this,
* one points to WSAEWOULDBLOCK and the other is from errno.h */
#ifdef EWOULDBLOCK
#undef EWOULDBLOCK
#endif
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS
#define EMSGSIZE WSAEMSGSIZE
#define ENOPROTOOPT WSAENOPROTOOPT