summaryrefslogtreecommitdiff
path: root/src/mongo/util/queue.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2012-07-09 18:11:54 -0400
committerMathias Stearn <mathias@10gen.com>2012-07-10 17:56:28 -0400
commitb113287f27810722b09fee13d66d4ca307872d96 (patch)
treedc377ef90f2ad1e348651c7b8e282bb4f7a406e5 /src/mongo/util/queue.h
parent5dcd31a8f12ab35bfbcd32d59e27065a676264f0 (diff)
downloadmongo-b113287f27810722b09fee13d66d4ca307872d96.tar.gz
SERVER-6340 Use TIME_UTC_ rather than TIME_UTC
This avoids a compilation failure with glibc-2.16 or any other C11 libc. Boost made the same change for boost-1.50: https://svn.boost.org/trac/boost/ticket/6940
Diffstat (limited to 'src/mongo/util/queue.h')
-rw-r--r--src/mongo/util/queue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/queue.h b/src/mongo/util/queue.h
index c5a363cae87..581eb722e61 100644
--- a/src/mongo/util/queue.h
+++ b/src/mongo/util/queue.h
@@ -121,7 +121,7 @@ namespace mongo {
Timer timer;
boost::xtime xt;
- boost::xtime_get(&xt, boost::TIME_UTC);
+ boost::xtime_get(&xt, boost::TIME_UTC_);
xt.sec += maxSecondsToWait;
scoped_lock l( _lock );
@@ -143,7 +143,7 @@ namespace mongo {
Timer timer;
boost::xtime xt;
- boost::xtime_get(&xt, boost::TIME_UTC);
+ boost::xtime_get(&xt, boost::TIME_UTC_);
xt.sec += maxSecondsToWait;
scoped_lock l( _lock );