mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +00: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>
|
#include <string>
|
||||||
|
|
||||||
inline void ThrowErrno(const std::string& prefix) {
|
inline void ThrowErrno(const std::string& prefix) {
|
||||||
#if defined __USE_XOPEN2K || defined __USE_MISC
|
|
||||||
char buffer[MAXPATHLEN];
|
char buffer[MAXPATHLEN];
|
||||||
strerror_r(errno,buffer, MAXPATHLEN);
|
|
||||||
throw prefix + ": " + buffer;
|
|
||||||
#else
|
|
||||||
throw prefix + ": " + strerror(errno);
|
throw prefix + ": " + strerror(errno);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user