1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Make asctime_r work for HP/UX.

llvm-svn: 19544
This commit is contained in:
Reid Spencer 2005-01-14 00:50:50 +00:00
parent 9add8dfd15
commit 4e90250e81

View File

@ -25,7 +25,11 @@ std::string TimeValue::toString() const {
char buffer[32];
time_t ourTime = time_t(this->toEpochTime());
#ifdef __hpux
asctime_r(localtime(&ourTime), buffer);
#else
::asctime_r(::localtime(&ourTime), buffer);
#endif
std::string result(buffer);
return result.substr(0,24);