Author: akhaldi
Date: Sat Apr 26 17:46:43 2014
New Revision: 62992
URL:
http://svn.reactos.org/svn/reactos?rev=62992&view=rev
Log:
[CRT]
* Add missing EWOULDBLOCK define.
[ADNS]
* Make sure we get the intended EWOULDBLOCK here.
Modified:
trunk/reactos/include/crt/errno.h
trunk/reactos/lib/3rdparty/adns/adns_win32/adns_win32.h
Modified: trunk/reactos/include/crt/errno.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/errno.h?rev=62…
==============================================================================
--- trunk/reactos/include/crt/errno.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/errno.h [iso-8859-1] Sat Apr 26 17:46:43 2014
@@ -69,6 +69,8 @@
#define EDEADLOCK EDEADLK
+#define EWOULDBLOCK 140
+
#ifdef __cplusplus
}
#endif
Modified: trunk/reactos/lib/3rdparty/adns/adns_win32/adns_win32.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/adns/adns_win…
==============================================================================
--- trunk/reactos/lib/3rdparty/adns/adns_win32/adns_win32.h [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/adns/adns_win32/adns_win32.h [iso-8859-1] Sat Apr 26
17:46:43 2014
@@ -108,7 +108,15 @@
#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