[Pkg-gnupg-commit] [libassuan] 228/437: 2008-03-21 Marcus Brinkmann <marcus at g10code.de>
Eric Dorland
eric at moszumanska.debian.org
Fri May 22 05:33:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libassuan.
commit 8dcefc313db5b872e8d59ad4eb532c735f1f870a
Author: Marcus Brinkmann <mb at g10code.com>
Date: Fri Mar 21 04:34:08 2008 +0000
2008-03-21 Marcus Brinkmann <marcus at g10code.de>
* mkerrors [HAVE_W32_SYSTEM]: Include <windows.h>
(_assuan_error_is_eagain) [HAVE_W32_SYSTEM]: Wait the tenth of a
second.
---
src/ChangeLog | 6 ++++++
src/mkerrors | 10 +++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/ChangeLog b/src/ChangeLog
index 6692040..c2ba1df 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-21 Marcus Brinkmann <marcus at g10code.de>
+
+ * mkerrors [HAVE_W32_SYSTEM]: Include <windows.h>
+ (_assuan_error_is_eagain) [HAVE_W32_SYSTEM]: Wait the tenth of a
+ second.
+
2007-11-23 Marcus Brinkmann <marcus at g10code.de>
* assuan-inquire.c (_assuan_inquire_ext_cb): Pass through return
diff --git a/src/mkerrors b/src/mkerrors
index 33a9284..5c00836 100755
--- a/src/mkerrors
+++ b/src/mkerrors
@@ -28,6 +28,9 @@ cat <<EOF
#include <stdio.h>
#include <assert.h>
#include <errno.h>
+#ifdef HAVE_W32_SYSTEM
+#include <windows.h>
+#endif
#undef _ASSUAN_IN_LIBASSUAN /* undef to get all error codes. */
#include "assuan.h"
@@ -148,7 +151,12 @@ _assuan_error_is_eagain (assuan_error_t err)
{
if ((!err_source && err == ASSUAN_Read_Error && errno == EAGAIN)
|| (err_source && (err & ((1 << 24) - 1)) == (6 | (1 << 15))))
- return 1;
+ {
+#ifdef HAVE_W32_SYSTEM
+ Sleep (100);
+#endif
+ return 1;
+ }
else
return 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libassuan.git
More information about the Pkg-gnupg-commit
mailing list