Failure to compile to systems that don't have a valid definition
of strerror_r.
This commit is contained in:
JamesReynolds 2018-06-01 11:51:08 +01:00
parent 4131347079
commit 3fbac8e2b7

View File

@ -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)
{