some GCC 2.95 support fixes and some BeOS support

This commit is contained in:
Arvid Norberg
2009-11-28 22:41:21 +00:00
parent 1d6d11bf0c
commit 39dae9e6dc
25 changed files with 102 additions and 62 deletions

View File

@@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <ctime>
#include <string>
#include <cstdio>
#include <limits>
#include <boost/limits.hpp>
#include <boost/version.hpp>
#include "libtorrent/config.hpp"
#include "libtorrent/time.hpp"
@@ -182,7 +182,17 @@ namespace libtorrent
}
}
#endif // TORRENT_USE_CLOCK_GETTIME
#elif defined TORRENT_USE_SYSTEM_TIME
#include <kernel/OS.h>
namespace libtorrent
{
ptime time_now_hires()
{ return ptime(get_system_time()); }
}
#endif // TORRENT_USE_SYSTEM_TIME
#endif // TORRENT_USE_BOOST_DATE_TIME