diff options
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rwxr-xr-x | src/mkerrors | 10 |
2 files changed, 15 insertions, 1 deletions
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 <[email protected]> + + * 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 <[email protected]> * 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; } |