aboutsummaryrefslogtreecommitdiffstats
path: root/src/mkerrors
diff options
context:
space:
mode:
Diffstat (limited to 'src/mkerrors')
-rwxr-xr-xsrc/mkerrors10
1 files changed, 9 insertions, 1 deletions
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;
}