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
This commit is contained in:
Reid Spencer 2004-11-14 22:10:54 +00:00
parent d351871d9b
commit 64a10ce9ad

View File

@ -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
}