aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Unix/TimeValue.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/Unix/TimeValue.inc')
-rw-r--r--lib/System/Unix/TimeValue.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/System/Unix/TimeValue.inc b/lib/System/Unix/TimeValue.inc
index 8f0ad38d8e..83d76d202c 100644
--- a/lib/System/Unix/TimeValue.inc
+++ b/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);