diff options
author | Andre Heinecke <[email protected]> | 2016-07-04 14:19:50 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-07-05 09:13:43 +0000 |
commit | 65e967627b3d60f550c7d302227dcf9f797e437f (patch) | |
tree | dfe886c9bbdb4b425b5b7df5c8f45978320ed56d | |
parent | yat2m: Fix table formatting. (diff) | |
download | libgpg-error-65e967627b3d60f550c7d302227dcf9f797e437f.tar.gz libgpg-error-65e967627b3d60f550c7d302227dcf9f797e437f.zip |
Define EWOULDBLOCK in case it is not defined
* src/estream.c (EWOULDBLOCK): Define fallback.
--
Older mingw versions (2.0) do not define EWOULDBLOCK in errno.h
-rw-r--r-- | src/estream.c | 5 |
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 |