mirror of
https://github.com/rui314/mold.git
synced 2024-10-05 00:57:08 +03:00
Fix macOS build
This commit is contained in:
parent
ce2fee10b5
commit
7bb478b683
2
main.cc
2
main.cc
@ -19,7 +19,7 @@ std::string_view errno_string() {
|
||||
// always write an error message to a given buffer.
|
||||
|
||||
if (std::is_same<decltype(strerror_r(errno, buf, sizeof(buf))), char *>::value)
|
||||
return strerror_r(errno, buf, sizeof(buf));
|
||||
return (char *)(uintptr_t)strerror_r(errno, buf, sizeof(buf));
|
||||
strerror_r(errno, buf, sizeof(buf));
|
||||
return buf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user