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
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>
12 Binary 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
13 diff -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
18 // add msTimeOut millisecond to current time
20 - boost::xtime_get( &xt, boost::TIME_UTC );
21 + boost::xtime_get( &xt, boost::TIME_UTC_ );
23 unsigned long long ns = msTimeOut * 1000000ULL; // milli to nano
24 if ( xt.nsec + ns < 1000000000 ) {
25 diff -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
30 inline boost::xtime incxtimemillis( long long s ) {
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 ) {
37 diff -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
44 - boost::xtime_get(&xt, boost::TIME_UTC);
45 + boost::xtime_get(&xt, boost::TIME_UTC_);
46 xt.sec += maxSecondsToWait;
48 scoped_lock l( _lock );
49 diff -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
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 ) {
62 #elif defined(__sunos__)
63 inline void sleepsecs(int s) {
65 - boost::xtime_get(&xt, boost::TIME_UTC);
66 + boost::xtime_get(&xt, boost::TIME_UTC_);
68 boost::thread::sleep(xt);
70 inline void sleepmillis(long long s) {
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 ) {
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 ) {
87 #ifdef _WIN32 // no gettimeofday on windows
88 inline unsigned long long curTimeMillis64() {
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;
94 inline Date_t jsTime() {
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();
101 inline unsigned long long curTimeMicros64() {
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;
108 inline unsigned curTimeMicros() {
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;