aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCory Fields <theuni-nospam-@xbmc.org>2013-05-27 19:55:01 -0400
committerCory Fields <theuni-nospam-@xbmc.org>2013-09-05 21:31:03 -0400
commit35b8af92265ed74de63c3818e5290c27b3f35df2 (patch)
tree7cd074e2ba31ca9346d69922e312ebd3e7298711 /src/util.h
parent2fee100f036626866e5dca3f27b7562da25e43f3 (diff)
downloadbitcoin-35b8af92265ed74de63c3818e5290c27b3f35df2.tar.xz
autotools: switch to autotools buildsystem
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/util.h b/src/util.h
index f246412de0..62eb7fad9e 100644
--- a/src/util.h
+++ b/src/util.h
@@ -91,7 +91,6 @@ T* alignup(T* p)
}
#ifdef WIN32
-#define MSG_NOSIGNAL 0
#define MSG_DONTWAIT 0
#ifndef S_IRUSR
@@ -111,11 +110,13 @@ inline void MilliSleep(int64 n)
// Boost's sleep_for was uninterruptable when backed by nanosleep from 1.50
// until fixed in 1.52. Use the deprecated sleep method for the broken case.
// See: https://svn.boost.org/trac/boost/ticket/7238
-
-#if BOOST_VERSION >= 105000 && (!defined(BOOST_HAS_NANOSLEEP) || BOOST_VERSION >= 105200)
+#if defined(HAVE_WORKING_BOOST_SLEEP_FOR)
boost::this_thread::sleep_for(boost::chrono::milliseconds(n));
-#else
+#elif defined(HAVE_WORKING_BOOST_SLEEP)
boost::this_thread::sleep(boost::posix_time::milliseconds(n));
+#else
+ //should never get here
+#error missing boost sleep implementation
#endif
}