0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

use boost sleep on sunos SERVER-548

This commit is contained in:
Eliot Horowitz 2010-01-15 08:07:33 -05:00
parent 1ba0144d4f
commit d309bc1b09

View File

@ -184,7 +184,7 @@ namespace mongo {
#define localtime _localtime_not_threadsafe_
#define ctime _ctime_is_not_threadsafe_
#ifdef _WIN32
#if defined(_WIN32) || defined(__sunos__)
inline void sleepsecs(int s) {
boost::xtime xt;
boost::xtime_get(&xt, boost::TIME_UTC);