diff options
author | Tobias Junghans <[email protected]> | 2018-11-06 10:32:14 +0100 |
---|---|---|
committer | Tobias Junghans <[email protected]> | 2018-11-06 10:32:14 +0100 |
commit | 09b2ed438177a86bcf29e01bf0851ce815b6ef8d (patch) | |
tree | fea75e60787d030f5fcd50ba9a1a10dc7734d6f5 /libvncserver | |
parent | 343eaabd7c910676a9985f1585e2cd4adebaaaa7 (diff) | |
download | libtdevnc-09b2ed438177a86bcf29e01bf0851ce815b6ef8d.tar.gz libtdevnc-09b2ed438177a86bcf29e01bf0851ce815b6ef8d.zip |
Undef error codes before redefining them for WSA
Fixes compiler warnings about redefined macros from errno.h.
Diffstat (limited to 'libvncserver')
-rw-r--r-- | libvncserver/sockets.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvncserver/sockets.c b/libvncserver/sockets.c index bbc3d90..fe54a37 100644 --- a/libvncserver/sockets.c +++ b/libvncserver/sockets.c @@ -109,7 +109,13 @@ int deny_severity=LOG_WARNING; #pragma warning (disable: 4018 4761) #endif #define read(sock,buf,len) recv(sock,buf,len,0) +#ifdef EWOULDBLOCK +#undef EWOULDBLOCK +#endif #define EWOULDBLOCK WSAEWOULDBLOCK +#ifdef ETIMEDOUT +#undef ETIMEDOUT +#endif #define ETIMEDOUT WSAETIMEDOUT #define write(sock,buf,len) send(sock,buf,len,0) #else |