[CRT]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Apr 2014 17:46:43 +0000 (17:46 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Apr 2014 17:46:43 +0000 (17:46 +0000)
* Add missing EWOULDBLOCK define.
[ADNS]
* Make sure we get the intended EWOULDBLOCK here.

svn path=/trunk/; revision=62992

reactos/include/crt/errno.h
reactos/lib/3rdparty/adns/adns_win32/adns_win32.h

index 8e8917b..48f749f 100644 (file)
@@ -69,6 +69,8 @@ extern "C" {
 
 #define EDEADLOCK EDEADLK
 
+#define EWOULDBLOCK 140
+
 #ifdef __cplusplus
 }
 #endif
index d3cba40..61e7480 100644 (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