aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-02-26 19:12:04 +0100
committerVincent Richard <[email protected]>2014-02-26 19:12:04 +0100
commit5fb3f5a15fbf1d184c404c9d0229d913568e14d5 (patch)
treef7e7e013e0f75c0bc1be4510f0d833a46d6104c8 /src
parentFixed possible issues with EAGAIN on Windows. (diff)
downloadvmime-5fb3f5a15fbf1d184c404c9d0229d913568e14d5.tar.gz
vmime-5fb3f5a15fbf1d184c404c9d0229d913568e14d5.zip
Compilation fixes for Windows.
Diffstat (limited to 'src')
-rw-r--r--src/vmime/platforms/windows/windowsSocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vmime/platforms/windows/windowsSocket.cpp b/src/vmime/platforms/windows/windowsSocket.cpp
index a64498a6..d65b4f09 100644
--- a/src/vmime/platforms/windows/windowsSocket.cpp
+++ b/src/vmime/platforms/windows/windowsSocket.cpp
@@ -439,7 +439,7 @@ bool windowsSocket::waitForData(const bool read, const bool write, const int mse
tv.tv_sec = 0;
tv.tv_usec = 10000; // 10 ms
- ssize_t ret = ::select(m_desc + 1, read ? &fds : NULL, write ? &fds : NULL, NULL, &tv);
+ int ret = ::select(m_desc + 1, read ? &fds : NULL, write ? &fds : NULL, NULL, &tv);
if (ret == SOCKET_ERROR)
{
@@ -479,7 +479,7 @@ bool windowsSocket::waitForRead(const int msecs)
}
-bool windowsSocket::waitForWrite(const int msecs = 30000)
+bool windowsSocket::waitForWrite(const int msecs)
{
return waitForData(/* read */ false, /* write */ true, msecs);
}