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:
parent
bd1d413e4e
commit
542b5216bf
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user