From 35b8af92265ed74de63c3818e5290c27b3f35df2 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Mon, 27 May 2013 19:55:01 -0400 Subject: autotools: switch to autotools buildsystem --- src/util.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/util.h') 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 } -- cgit v1.2.3