diff options
| author | Vincent Richard <[email protected]> | 2014-02-26 19:12:04 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2014-02-26 19:12:04 +0100 |
| commit | 5fb3f5a15fbf1d184c404c9d0229d913568e14d5 (patch) | |
| tree | f7e7e013e0f75c0bc1be4510f0d833a46d6104c8 /src | |
| parent | Fixed possible issues with EAGAIN on Windows. (diff) | |
| download | vmime-5fb3f5a15fbf1d184c404c9d0229d913568e14d5.tar.gz vmime-5fb3f5a15fbf1d184c404c9d0229d913568e14d5.zip | |
Compilation fixes for Windows.
Diffstat (limited to 'src')
| -rw-r--r-- | src/vmime/platforms/windows/windowsSocket.cpp | 4 |
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); } |
