summaryrefslogtreecommitdiff
path: root/src/mongo/util/time_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/time_support.h')
-rw-r--r--src/mongo/util/time_support.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/util/time_support.h b/src/mongo/util/time_support.h
index 33662c8e4b9..511bc092fb1 100644
--- a/src/mongo/util/time_support.h
+++ b/src/mongo/util/time_support.h
@@ -19,6 +19,7 @@
#include <ctime>
#include <string>
+#include <boost/thread/xtime.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "mongo/bson/util/misc.h" // Date_t
@@ -62,4 +63,10 @@ namespace mongo {
struct tm *gmtime(const time_t *timep);
struct tm *localtime(const time_t *timep);
+#if defined(MONGO_BOOST_TIME_UTC_HACK) || (BOOST_VERSION >= 105000)
+#define MONGO_BOOST_TIME_UTC boost::TIME_UTC_
+#else
+#define MONGO_BOOST_TIME_UTC boost::TIME_UTC
+#endif
+
} // namespace mongo