From 542b5216bf289f36465d51aab4f4476e63284b73 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 14 Nov 2004 22:10:54 +0000 Subject: [PATCH] Forget strerror_r, it causes problems. Fix later when threading matters llvm-svn: 17783 --- lib/System/Unix/Unix.h | 5 ----- 1 file changed, 5 deletions(-) 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 }