From: Gunnar Beutner Date: Thu, 14 Feb 2013 09:59:01 +0000 (+0100) Subject: Windows build fix. X-Git-Tag: v0.0.2~417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=099821ce07cdab05723f7a2c2d0dc1b6bde60f98;p=icinga2 Windows build fix. --- diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index 8b702ad12..9572cd221 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -532,6 +532,7 @@ void Utility::WaitUntil(const function& predicate) Application::ProcessEvents(); } +#ifndef _WIN32 void Utility::SetNonBlocking(int fd) { int flags; @@ -553,6 +554,7 @@ void Utility::SetCloExec(int fd) if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) BOOST_THROW_EXCEPTION(PosixException("fcntl failed", errno)); } +#endif /* _WIN32 */ void Utility::SetNonBlockingSocket(SOCKET s) {