From c663c1840061e992c0a3802506e01c00f14a9c82 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 31 Oct 2007 15:36:02 +0000 Subject: [PATCH] DEVEL15-windows-uaewouldblock-20071031 Reorganize the order of the includes to ensure that EWOULDBLOCK is not assigned the same value as EIO. (cherry picked from commit d16d5c031274e05ea27f12965e094ae42d8af9e5) --- src/WINNT/afsd/cm_utils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/WINNT/afsd/cm_utils.c b/src/WINNT/afsd/cm_utils.c index 338f5bada..1c7de6191 100644 --- a/src/WINNT/afsd/cm_utils.c +++ b/src/WINNT/afsd/cm_utils.c @@ -14,7 +14,6 @@ #ifndef DJGPP #include #include -#include #ifndef EWOULDBLOCK #define EWOULDBLOCK WSAEWOULDBLOCK #define EINPROGRESS WSAEINPROGRESS @@ -64,6 +63,7 @@ #define EREMOTE WSAEREMOTE #endif /* EWOULDBLOCK */ #endif /* !DJGPP */ +#include #include #include @@ -251,8 +251,9 @@ long cm_MapRPCError(long error, cm_req_t *reqp) error = CM_ERROR_NOTDIR; else if (error == 2) /* ENOENT */ error = CM_ERROR_NOSUCHFILE; - else if (error == 11 /* EAGAIN, most servers */ - || error == 35) /* EAGAIN, Digital UNIX */ + else if (error == 11 /* EAGAIN, most servers */ + || error == 35 /* EAGAIN, Digital UNIX */ + || error == WSAEWOULDBLOCK) error = CM_ERROR_WOULDBLOCK; else if (error == VDISKFULL || error == 28) /* ENOSPC */ -- 2.39.5