Skip to content

Commit

Permalink
fixed the OSX compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
hiraksarkar committed Feb 7, 2019
1 parent a4ef901 commit dbd1953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/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 dbd1953

Please sign in to comment.