summaryrefslogtreecommitdiff
path: root/lib/System/Unix/Unix.h
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
commit64a10ce9ad93b8b8577540da7d776b6b37d9fbf3 (patch)
tree75f29bc15ad591758afc9e6d560b9fcc1a39605b /lib/System/Unix/Unix.h
parentd351871d9b2cd7788274a47a2b8a23dbba663288 (diff)
downloadllvm-64a10ce9ad93b8b8577540da7d776b6b37d9fbf3.tar.gz
llvm-64a10ce9ad93b8b8577540da7d776b6b37d9fbf3.tar.bz2
llvm-64a10ce9ad93b8b8577540da7d776b6b37d9fbf3.tar.xz
Forget strerror_r, it causes problems. Fix later when threading matters
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/Unix.h')
-rw-r--r--lib/System/Unix/Unix.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/System/Unix/Unix.h b/lib/System/Unix/Unix.h
index b9eff46c46..afb9100583 100644
--- 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
}