1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Forget strerror_r, it causes problems. Fix later when threading matters

llvm-svn: 17783
This commit is contained in:
Reid Spencer 2004-11-14 22:10:54 +00:00
parent bd1d413e4e
commit 542b5216bf

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
}