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:
d351871
)
Forget strerror_r, it causes problems. Fix later when threading matters
author
Reid Spencer
<rspencer@reidspencer.com>
Sun, 14 Nov 2004 22:10:54 +0000
(22:10 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Sun, 14 Nov 2004 22:10:54 +0000
(22:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17783
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Unix/Unix.h
patch
|
blob
|
history
diff --git
a/lib/System/Unix/Unix.h
b/lib/System/Unix/Unix.h
index b9eff46c46f10864401eaf7cb9e9fa716c5fccd5..afb9100583766eed52d298be7149a8d56ac3d185 100644
(file)
--- a/
lib/System/Unix/Unix.h
+++ b/
lib/System/Unix/Unix.h
@@
-28,11
+28,6
@@
#include <string>
inline void ThrowErrno(const std::string& prefix) {
-#if defined __USE_XOPEN2K || defined __USE_MISC
char buffer[MAXPATHLEN];
- strerror_r(errno,buffer, MAXPATHLEN);
- throw prefix + ": " + buffer;
-#else
throw prefix + ": " + strerror(errno);
-#endif
}