1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-01 10:59:55 +00:00
freebsd-ports/math/mfem/files/patch-general_zstr.hpp
Yuri Victorovich 2fa0c9e8d4 math/mfem: Update 4.0 -> 4.1
Reported by:	portscout
2020-03-11 15:58:53 +00:00

12 lines
552 B
C++

--- general/zstr.hpp.orig 2020-03-11 15:50:47 UTC
+++ general/zstr.hpp
@@ -69,7 +69,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__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
// XSI-compliant strerror_r()
if (strerror_r(errno, &buff[0], buff.size()) != 0)
{