aboutsummaryrefslogtreecommitdiff
path: root/devel/cppcommon/files/patch-source_errors_system__error.cpp
blob: 76e0077ed10fee7c6d901749f34b5b81b7a297b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- source/errors/system_error.cpp.orig	2026-02-27 14:10:30 UTC
+++ source/errors/system_error.cpp
@@ -48,7 +48,7 @@ std::string SystemError::Description(int error)
     const int capacity = 1024;
 #if defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
     char buffer[capacity];
-#if defined(__APPLE__) || defined(__CYGWIN__)
+#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__)
     int result = strerror_r(error, buffer, capacity);
     if (result != 0)
 #else