Failure to compile to systems that don't have a valid definition
of strerror_r.
pull/718/head
JamesReynolds 7 years ago
parent 4131347079
commit 3fbac8e2b7

@ -397,6 +397,11 @@ inline std::string errno_to_string(char buf[256], int res)
return "Unknown error";
}
inline std::string errno_to_string(char buf[256], const fmt::internal::Null<> &/*tag*/)
{
return errno_to_string(buf, -1);
}
// Return errno string (thread safe)
inline std::string errno_str(int err_num)
{

Loading…
Cancel
Save