diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-14 22:10:54 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-14 22:10:54 +0000 |
commit | 64a10ce9ad93b8b8577540da7d776b6b37d9fbf3 (patch) | |
tree | 75f29bc15ad591758afc9e6d560b9fcc1a39605b /lib/System/Unix/Unix.h | |
parent | d351871d9b2cd7788274a47a2b8a23dbba663288 (diff) | |
download | external_llvm-64a10ce9ad93b8b8577540da7d776b6b37d9fbf3.zip external_llvm-64a10ce9ad93b8b8577540da7d776b6b37d9fbf3.tar.gz external_llvm-64a10ce9ad93b8b8577540da7d776b6b37d9fbf3.tar.bz2 |
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.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/System/Unix/Unix.h b/lib/System/Unix/Unix.h index b9eff46..afb9100 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 } |