aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/estream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/estream.c b/src/estream.c
index 4352df5..4cc72ba 100644
--- a/src/estream.c
+++ b/src/estream.c
@@ -130,6 +130,11 @@
# define O_NONBLOCK 0 /* FIXME: Not yet supported. */
#endif
+#if !defined (EWOULDBLOCK) && defined (HAVE_W32_SYSTEM)
+/* Compatibility with errno.h from mingw-2.0 */
+# define EWOULDBLOCK 140
+#endif
+
#ifndef EAGAIN
# define EAGAIN EWOULDBLOCK
#endif