From: Reid Spencer Date: Sun, 14 Nov 2004 22:10:54 +0000 (+0000) Subject: Forget strerror_r, it causes problems. Fix later when threading matters X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=64a10ce9ad93b8b8577540da7d776b6b37d9fbf3;p=oota-llvm.git 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 --- diff --git a/lib/System/Unix/Unix.h b/lib/System/Unix/Unix.h index b9eff46c46f..afb91005837 100644 --- a/lib/System/Unix/Unix.h +++ b/lib/System/Unix/Unix.h @@ -28,11 +28,6 @@ #include 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 }