summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-14 22:10:54 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-14 22:10:54 +0000
commit2dd5e7183634a53e62e907fe7b956fb354cc7454 (patch)
tree5efbc79a753aed142850b3846c7a84a8bb03d7b5 /llvm/lib/System
parent0d455997f845aabe7578d2e9bdc809dc0b06e256 (diff)
downloadbcm5719-llvm-2dd5e7183634a53e62e907fe7b956fb354cc7454.tar.gz
bcm5719-llvm-2dd5e7183634a53e62e907fe7b956fb354cc7454.zip
Forget strerror_r, it causes problems. Fix later when threading matters
llvm-svn: 17783
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Unix/Unix.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/System/Unix/Unix.h b/llvm/lib/System/Unix/Unix.h
index b9eff46c46f..afb91005837 100644
--- a/llvm/lib/System/Unix/Unix.h
+++ b/llvm/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
}
OpenPOWER on IntegriCloud