aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-05-29 16:54:21 +0200
committerPierre Ossman <ossman@cendio.se>2015-05-29 16:58:02 +0200
commit500cb6ef11a52345bf49e751976bff386e6e09ef (patch)
tree9b6a25d9dafc5d28fe58f9bda3fee3fbd814f158 /common/rdr
parent7495b822fd4571312a1f0db9517f1046abc2a746 (diff)
downloadtigervnc-500cb6ef11a52345bf49e751976bff386e6e09ef.tar.gz
tigervnc-500cb6ef11a52345bf49e751976bff386e6e09ef.zip
Fix Winsock errno code overlap
Some Winsock errno:s conflict with the standard ones. Try to restrict the redefines to things relevant for sockets.
Diffstat (limited to 'common/rdr')
-rw-r--r--common/rdr/FdInStream.cxx2
-rw-r--r--common/rdr/FdOutStream.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/rdr/FdInStream.cxx b/common/rdr/FdInStream.cxx
index 22433a1b..9f35c9fb 100644
--- a/common/rdr/FdInStream.cxx
+++ b/common/rdr/FdInStream.cxx
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
+#include <errno.h>
#ifdef _WIN32
#include <winsock2.h>
#ifndef _WIN32_WCE
@@ -34,7 +35,6 @@
#include <os/winerrno.h>
#else
#include <sys/types.h>
-#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
#endif
diff --git a/common/rdr/FdOutStream.cxx b/common/rdr/FdOutStream.cxx
index 83360d64..75131a64 100644
--- a/common/rdr/FdOutStream.cxx
+++ b/common/rdr/FdOutStream.cxx
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <string.h>
+#include <errno.h>
#ifdef _WIN32
#include <winsock2.h>
#define write(s,b,l) send(s,(const char*)b,l,0)
@@ -31,7 +32,6 @@
#include <os/winerrno.h>
#else
#include <sys/types.h>
-#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
#endif