Windows build fix.

This commit is contained in:
Gunnar Beutner 2013-02-14 10:59:01 +01:00
parent c91191e701
commit 099821ce07
1 changed files with 2 additions and 0 deletions

View File

@ -532,6 +532,7 @@ void Utility::WaitUntil(const function<bool (void)>& predicate)
Application::ProcessEvents(); Application::ProcessEvents();
} }
#ifndef _WIN32
void Utility::SetNonBlocking(int fd) void Utility::SetNonBlocking(int fd)
{ {
int flags; int flags;
@ -553,6 +554,7 @@ void Utility::SetCloExec(int fd)
if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0)
BOOST_THROW_EXCEPTION(PosixException("fcntl failed", errno)); BOOST_THROW_EXCEPTION(PosixException("fcntl failed", errno));
} }
#endif /* _WIN32 */
void Utility::SetNonBlockingSocket(SOCKET s) void Utility::SetNonBlockingSocket(SOCKET s)
{ {