]> granicus.if.org Git - icinga2/commitdiff
Windows build fix.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 14 Feb 2013 09:59:01 +0000 (10:59 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 14 Feb 2013 09:59:01 +0000 (10:59 +0100)
lib/base/utility.cpp

index 8b702ad1297febd60171c9b907f667fd57ac9b9f..9572cd221771f325d0e7e0e01df120ca8b655d2b 100644 (file)
@@ -532,6 +532,7 @@ void Utility::WaitUntil(const function<bool (void)>& 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)
 {