From 099821ce07cdab05723f7a2c2d0dc1b6bde60f98 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 14 Feb 2013 10:59:01 +0100 Subject: [PATCH] Windows build fix. --- lib/base/utility.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.50.0