[icinga-checkins] icinga.org: icinga2/master: Windows build fix.

git at icinga.org git at icinga.org
Thu Feb 14 10:59:09 CET 2013


Module: icinga2
Branch: master
Commit: 099821ce07cdab05723f7a2c2d0dc1b6bde60f98
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=099821ce07cdab05723f7a2c2d0dc1b6bde60f98

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Feb 14 10:59:01 2013 +0100

Windows build fix.

---

 lib/base/utility.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp
index 8b702ad..9572cd2 100644
--- a/lib/base/utility.cpp
+++ b/lib/base/utility.cpp
@@ -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)
 {





More information about the icinga-checkins mailing list