We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f54f5 commit 50d70c5Copy full SHA for 50d70c5
src/strict_fstream.hpp
@@ -64,7 +64,7 @@ static std::string strerror()
64
} else {
65
return "Unknown error (" + std::to_string(err_num) + ")";
66
}
67
-#elif ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) || defined(__APPLE__) || defined(__MUSL__)
+#elif ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) || defined(__APPLE__) || defined(__MUSL__) || defined(__FreeBSD__)
68
// XSI-compliant strerror_r()
69
const int err_num = errno; // See above
70
if (strerror_r(err_num, buff.data(), buff.size()) == 0) {
0 commit comments