summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/ccache/ccapi/stdcc.c
diff options
context:
space:
mode:
authorKevin Wasserman <kevin.wasserman@painless-security.com>2012-04-20 11:36:13 -0400
committerSam Hartman <hartmans@mit.edu>2012-07-11 22:36:07 -0400
commitfc08c21ab33fcc0c8851a2a0fb0e55721ff975ea (patch)
treea4ad8213c3b731cea1ade84be42a3fac0f42a6a6 /src/lib/krb5/ccache/ccapi/stdcc.c
parent904368745815bfed9cfd5a5c0916488d16a029fe (diff)
downloadkrb5-fc08c21ab33fcc0c8851a2a0fb0e55721ff975ea.tar.gz
krb5-fc08c21ab33fcc0c8851a2a0fb0e55721ff975ea.tar.xz
krb5-fc08c21ab33fcc0c8851a2a0fb0e55721ff975ea.zip
Translate WinSock errors to Posix counterparts
MSVC 2010 defines both Posix and WinSock error values so we can no longer simply #define the Posix error values to be their WinSock counterpart. This patch explicitly #includes <errno.h> in port-sockets.h and still conditionally defines the Posix error values for compatibility with older MSVC but also translates WinSock errors to Posix for MSVC 2010 compatibility. The downside to this approach is that there are some Posix errors we do not currently detect (e.g. EADDRINUSE) that are neither #defined nor translated. If we use one of those in the future but fail to update TranslateWSAGetLastError() we'll once again be in the situation that the windows build will compile but fail to work, possibly only when some rare error condition occurs. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7197 (new) tags: pullup
Diffstat (limited to 'src/lib/krb5/ccache/ccapi/stdcc.c')
0 files changed, 0 insertions, 0 deletions