Skip to content

Commit

Permalink
zstr for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisp committed Sep 1, 2020
1 parent 3aeee9f commit 0dcd337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zstr/strict_fstream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static std::string strerror()
{
buff = "Unknown error";
}
#elif (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE
#elif (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || defined(__APPLE__) ) && ! _GNU_SOURCE
// XSI-compliant strerror_r()
if (strerror_r(errno, &buff[0], buff.size()) != 0)
{
Expand Down

0 comments on commit 0dcd337

Please sign in to comment.