From: Martin Willi Date: Thu, 2 Jan 2014 13:34:00 +0000 (+0100) Subject: windows: Check for existence of error codes before defining them X-Git-Tag: 5.2.0dr6~24^2~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f3bf4175d72af01320d49c090fd3d294f658aeb;p=thirdparty%2Fstrongswan.git windows: Check for existence of error codes before defining them --- diff --git a/src/libstrongswan/utils/windows.h b/src/libstrongswan/utils/windows.h index 2de6f043b4..9ed6f8f11b 100644 --- a/src/libstrongswan/utils/windows.h +++ b/src/libstrongswan/utils/windows.h @@ -258,13 +258,17 @@ int socketpair(int domain, int type, int protocol, int sv[2]); /** * EWOULDBLOCK is EAGAIN on other systems as well */ +#ifndef EWOULDBLOCK #define EWOULDBLOCK EAGAIN +#endif /** * ECONNRESET is mapped to something arbitrary. It is returned by * stream->read_all() but should not be mapped from a send/recv WSA error. */ +#ifndef ECONNRESET #define ECONNRESET ENXIO +#endif /** * close(2) working for file handles and Winsock sockets