]> git.pld-linux.org Git - packages/mongodb.git/blame - boost-1.50.patch
TIME_UTC has grown an underscore
[packages/mongodb.git] / boost-1.50.patch
CommitLineData
2d54e68a
JR
1--- mongodb-src-r2.0.6/pch.h~ 2012-06-04 15:42:54.000000000 +0200
2+++ mongodb-src-r2.0.6/pch.h 2012-07-11 14:32:55.482057987 +0200
3@@ -79,7 +79,7 @@
4 //#include <boost/any.hpp>
5 #include "boost/thread/once.hpp"
6 //#include <boost/archive/iterators/transform_width.hpp>
7-#define BOOST_FILESYSTEM_VERSION 2
8+#define BOOST_FILESYSTEM_VERSION 3
9 #include <boost/filesystem/convenience.hpp>
10 #include <boost/filesystem/exception.hpp>
11 #include <boost/filesystem/operations.hpp>
d7c33f7a
JR
12Binary files mongodb-src-r2.0.6.orig/lib/libboost_thread-gcc41-mt-d-1_34_1.a and mongodb-src-r2.0.6/lib/libboost_thread-gcc41-mt-d-1_34_1.a differ
13diff -ur mongodb-src-r2.0.6.orig/util/background.cpp mongodb-src-r2.0.6/util/background.cpp
14--- mongodb-src-r2.0.6.orig/util/background.cpp 2012-06-04 15:42:54.000000000 +0200
15+++ mongodb-src-r2.0.6/util/background.cpp 2012-07-11 14:35:09.392053263 +0200
16@@ -89,7 +89,7 @@
17 if ( msTimeOut ) {
18 // add msTimeOut millisecond to current time
19 boost::xtime xt;
20- boost::xtime_get( &xt, boost::TIME_UTC );
21+ boost::xtime_get( &xt, boost::TIME_UTC_ );
22
23 unsigned long long ns = msTimeOut * 1000000ULL; // milli to nano
24 if ( xt.nsec + ns < 1000000000 ) {
25diff -ur mongodb-src-r2.0.6.orig/util/concurrency/mutex.h mongodb-src-r2.0.6/util/concurrency/mutex.h
26--- mongodb-src-r2.0.6.orig/util/concurrency/mutex.h 2012-06-04 15:42:54.000000000 +0200
27+++ mongodb-src-r2.0.6/util/concurrency/mutex.h 2012-07-11 14:35:09.392053263 +0200
28@@ -29,7 +29,7 @@
29
30 inline boost::xtime incxtimemillis( long long s ) {
31 boost::xtime xt;
32- boost::xtime_get(&xt, boost::TIME_UTC);
33+ boost::xtime_get(&xt, boost::TIME_UTC_);
34 xt.sec += (int)( s / 1000 );
35 xt.nsec += (int)(( s % 1000 ) * 1000000);
36 if ( xt.nsec >= 1000000000 ) {
37diff -ur mongodb-src-r2.0.6.orig/util/queue.h mongodb-src-r2.0.6/util/queue.h
38--- mongodb-src-r2.0.6.orig/util/queue.h 2012-06-04 15:42:54.000000000 +0200
39+++ mongodb-src-r2.0.6/util/queue.h 2012-07-11 14:35:09.392053263 +0200
40@@ -82,7 +82,7 @@
41 Timer timer;
42
43 boost::xtime xt;
44- boost::xtime_get(&xt, boost::TIME_UTC);
45+ boost::xtime_get(&xt, boost::TIME_UTC_);
46 xt.sec += maxSecondsToWait;
47
48 scoped_lock l( _lock );
49diff -ur mongodb-src-r2.0.6.orig/util/time_support.h mongodb-src-r2.0.6/util/time_support.h
50--- mongodb-src-r2.0.6.orig/util/time_support.h 2012-06-04 15:42:54.000000000 +0200
51+++ mongodb-src-r2.0.6/util/time_support.h 2012-07-11 14:35:09.392053263 +0200
52@@ -106,7 +106,7 @@
53 if ( s <= 0 )
54 return;
55 boost::xtime xt;
56- boost::xtime_get(&xt, boost::TIME_UTC);
57+ boost::xtime_get(&xt, boost::TIME_UTC_);
58 xt.sec += (int)( s / 1000000 );
59 xt.nsec += (int)(( s % 1000000 ) * 1000);
60 if ( xt.nsec >= 1000000000 ) {
61@@ -118,13 +118,13 @@
62 #elif defined(__sunos__)
63 inline void sleepsecs(int s) {
64 boost::xtime xt;
65- boost::xtime_get(&xt, boost::TIME_UTC);
66+ boost::xtime_get(&xt, boost::TIME_UTC_);
67 xt.sec += s;
68 boost::thread::sleep(xt);
69 }
70 inline void sleepmillis(long long s) {
71 boost::xtime xt;
72- boost::xtime_get(&xt, boost::TIME_UTC);
73+ boost::xtime_get(&xt, boost::TIME_UTC_);
74 xt.sec += (int)( s / 1000 );
75 xt.nsec += (int)(( s % 1000 ) * 1000000);
76 if ( xt.nsec >= 1000000000 ) {
77@@ -137,7 +137,7 @@
78 if ( s <= 0 )
79 return;
80 boost::xtime xt;
81- boost::xtime_get(&xt, boost::TIME_UTC);
82+ boost::xtime_get(&xt, boost::TIME_UTC_);
83 xt.sec += (int)( s / 1000000 );
84 xt.nsec += (int)(( s % 1000000 ) * 1000);
85 if ( xt.nsec >= 1000000000 ) {
86@@ -202,24 +202,24 @@
87 #ifdef _WIN32 // no gettimeofday on windows
88 inline unsigned long long curTimeMillis64() {
89 boost::xtime xt;
90- boost::xtime_get(&xt, boost::TIME_UTC);
91+ boost::xtime_get(&xt, boost::TIME_UTC_);
92 return ((unsigned long long)xt.sec) * 1000 + xt.nsec / 1000000;
93 }
94 inline Date_t jsTime() {
95 boost::xtime xt;
96- boost::xtime_get(&xt, boost::TIME_UTC);
97+ boost::xtime_get(&xt, boost::TIME_UTC_);
98 unsigned long long t = xt.nsec / 1000000;
99 return ((unsigned long long) xt.sec * 1000) + t + getJSTimeVirtualSkew() + getJSTimeVirtualThreadSkew();
100 }
101 inline unsigned long long curTimeMicros64() {
102 boost::xtime xt;
103- boost::xtime_get(&xt, boost::TIME_UTC);
104+ boost::xtime_get(&xt, boost::TIME_UTC_);
105 unsigned long long t = xt.nsec / 1000;
106 return (((unsigned long long) xt.sec) * 1000000) + t;
107 }
108 inline unsigned curTimeMicros() {
109 boost::xtime xt;
110- boost::xtime_get(&xt, boost::TIME_UTC);
111+ boost::xtime_get(&xt, boost::TIME_UTC_);
112 unsigned t = xt.nsec / 1000;
113 unsigned secs = xt.sec % 1024;
114 return secs*1000000 + t;
This page took 0.142371 seconds and 4 git commands to generate.