mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
d351871d9b
commit
64a10ce9ad
@ -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