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.
2 parents 300d02a + 1f10839 commit 2ab17c5Copy full SHA for 2ab17c5
extern/zstr/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 || defined(__APPLE__) || defined(__FreeBSD__)) && ! _GNU_SOURCE) || defined(__MUSL__)
+#elif ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && ! _GNU_SOURCE) || defined(__MUSL__)
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