projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68f6b8c
)
Make asctime_r work for HP/UX.
author
Reid Spencer
<rspencer@reidspencer.com>
Fri, 14 Jan 2005 00:50:50 +0000
(
00:50
+0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Fri, 14 Jan 2005 00:50:50 +0000
(
00:50
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19544
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Unix/TimeValue.inc
patch
|
blob
|
history
diff --git
a/lib/System/Unix/TimeValue.inc
b/lib/System/Unix/TimeValue.inc
index 8f0ad38d8ef39dad13469a67579317b57dbbaa8a..83d76d202c540203ea88f93a38a2d670e9e26327 100644
(file)
--- 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);