diff options
Diffstat (limited to 'llvm/lib/System/Unix/TimeValue.inc')
-rw-r--r-- | llvm/lib/System/Unix/TimeValue.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/TimeValue.inc b/llvm/lib/System/Unix/TimeValue.inc index 8f0ad38d8ef..83d76d202c5 100644 --- a/llvm/lib/System/Unix/TimeValue.inc +++ b/llvm/lib/System/Unix/TimeValue.inc @@ -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); |