Skip to content

Commit

Permalink
fix bug with Boost 1.50
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud committed Oct 4, 2012
1 parent c475bf1 commit bef00d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/rosbag/src/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,11 @@ void Recorder::doRecord() {
break;
}
boost::xtime xt;
#if BOOST_VERSION >= 105000
boost::xtime_get(&xt, boost::TIME_UTC_);
#else
boost::xtime_get(&xt, boost::TIME_UTC);
#endif
xt.nsec += 250000000;
queue_condition_.timed_wait(lock, xt);
if (checkDuration(ros::Time::now()))
Expand Down

0 comments on commit bef00d3

Please sign in to comment.