opnsense-ports/biology/salmon/files/patch-include_strict__fstream.hpp
Franco Fichtner 9b53cebac6 */*: sync with upstream
Taken from: FreeBSD
2023-07-24 08:36:38 +02:00

11 lines
502 B
C++

--- include/strict_fstream.hpp.orig 2021-12-05 17:11:36 UTC
+++ include/strict_fstream.hpp
@@ -27,7 +27,7 @@ static std::string strerror()
{
buff = "Unknown error";
}
-#elif (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE || defined(__APPLE__)
+#elif (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE || defined(__APPLE__) || defined(__FreeBSD__)
// XSI-compliant strerror_r()
if (strerror_r(errno, &buff[0], buff.size()) != 0)
{