mirror of https://github.com/Icinga/icinga2.git
Windows build fix.
This commit is contained in:
parent
c91191e701
commit
099821ce07
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue