[Pkg-gnupg-commit] [libgpg-error] 07/15: Define EWOULDBLOCK in case it is not defined

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Jul 14 23:49:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository libgpg-error.

commit 65e967627b3d60f550c7d302227dcf9f797e437f
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Mon Jul 4 16:19:50 2016 +0200

    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
---
 src/estream.c | 5 +++++
 1 file changed, 5 insertions(+)

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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libgpg-error.git



More information about the Pkg-gnupg-commit mailing list