diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-11-09 15:28:50 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-11-09 15:28:50 +0100 |
commit | 7835815c1c32cdccfa74fb10ad25de4956bdc939 (patch) | |
tree | b4e505ca1e26dc360d3bcbcc70e3f1e78eb920d8 /common | |
parent | 9c181baf3c648e95a150c76eebd7ae5b5633c578 (diff) | |
download | tigervnc-7835815c1c32cdccfa74fb10ad25de4956bdc939.tar.gz tigervnc-7835815c1c32cdccfa74fb10ad25de4956bdc939.zip |
Remove old Windows CE code
Diffstat (limited to 'common')
-rw-r--r-- | common/rdr/FdOutStream.cxx | 9 | ||||
-rw-r--r-- | common/rfb/Logger_file.cxx | 2 |
2 files changed, 0 insertions, 11 deletions
diff --git a/common/rdr/FdOutStream.cxx b/common/rdr/FdOutStream.cxx index 75131a64..f4299030 100644 --- a/common/rdr/FdOutStream.cxx +++ b/common/rdr/FdOutStream.cxx @@ -198,16 +198,7 @@ int FdOutStream::writeWithTimeout(const void* data, int length, int timeoutms) FD_ZERO(&fds); FD_SET(fd, &fds); -#ifdef _WIN32_WCE - // NB: This fixes a broken Winsock2 select() behaviour. select() - // never returns for non-blocking sockets, unless they're already - // ready to be written to... - u_long zero = 0; ioctlsocket(fd, FIONBIO, &zero); -#endif n = select(fd+1, 0, &fds, 0, tvp); -#ifdef _WIN32_WCE - u_long one = 0; ioctlsocket(fd, FIONBIO, &one); -#endif } while (n < 0 && errno == EINTR); if (n < 0) throw SystemException("select",errno); diff --git a/common/rfb/Logger_file.cxx b/common/rfb/Logger_file.cxx index 8a109e4a..ebe15d52 100644 --- a/common/rfb/Logger_file.cxx +++ b/common/rfb/Logger_file.cxx @@ -61,13 +61,11 @@ void Logger_File::write(int level, const char *logname, const char *message) if (!m_file) return; } -#ifndef _WIN32_WCE time_t current = time(0); if (current != m_lastLogTime) { m_lastLogTime = current; fprintf(m_file, "\n%s", ctime(&m_lastLogTime)); } -#endif fprintf(m_file," %s:", logname); int column = strlen(logname) + 2; |