Commit 1ac68e39 authored by gabime's avatar gabime

Fixed issue #245

parent 01601cef
...@@ -264,7 +264,7 @@ inline std::string errno_str(int err_num) ...@@ -264,7 +264,7 @@ inline std::string errno_str(int err_num)
else else
return "Unkown error"; return "Unkown error";
#elif (_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE // posix version #elif defined(__APPLE__) || ((_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE) // posix version
if (strerror_r(err_num, buf, buf_size) == 0) if (strerror_r(err_num, buf, buf_size) == 0)
return std::string(buf); return std::string(buf);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment