Skip to content
Snippets Groups Projects
Commit 0513fd84 authored by John Romein's avatar John Romein
Browse files

bug 225:

Fix issue with Apple.
parent 554da64e
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ std::string SystemCallException::errorMessage(int error)
// there are two incompatible versions of versions of strerror_r()
#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE
#if !__linux__ || (!_GNU_SOURCE && (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600))
if (strerror_r(error, buffer, sizeof buffer) == 0)
return std::string(buffer);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment