From: Jeffrey Altman Date: Mon, 1 Aug 2011 15:00:55 +0000 (-0400) Subject: Windows: unified afs errors must use nt mapping X-Git-Tag: upstream/1.6.0^2~59 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=19cd276d0969853de86c0067980353eeb7309eef;p=packages%2Fo%2Fopenafs.git Windows: unified afs errors must use nt mapping On Windows, error.h does not provide a complete list of POSIX C99 error values. OpenAFS fills in the gaps with a private error mapping table afs/errmap_nt.h (src/util/errmap_nt.h). If errmap_nt.h is not included prior to processing unified_afs.h, values such as ELOOP will be mapped to EIO instead of the unique value defined by errmap_nt.h. Reviewed-on: http://gerrit.openafs.org/5128 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman (cherry picked from 71e64b6f21817872676e74a8c67c0f0bcfb23391) Change-Id: If6582d7242418c15eb007471199a6dfcc6732e3b Reviewed-on: http://gerrit.openafs.org/5147 Tested-by: BuildBot Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- diff --git a/src/afs/unified_afs.p.h b/src/afs/unified_afs.p.h index 20841e8e5..84de57024 100644 --- a/src/afs/unified_afs.p.h +++ b/src/afs/unified_afs.p.h @@ -1,3 +1,7 @@ +#ifdef AFS_NT40_ENV +#include +#endif + #ifndef EIO #error Cant deal with this case #endif /* EIO */