Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/biology/btllib/files/patch-src_btllib_status.cpp
16461 views
1
--- src/btllib/status.cpp.orig 2023-07-21 18:23:40 UTC
2
+++ src/btllib/status.cpp
3
@@ -84,7 +84,7 @@ get_strerror()
4
char buf[buflen];
5
// POSIX and GNU implementation of strerror_r differ, even in function signature
6
// and so we need to check which one is used
7
-#if __APPLE__ || \
8
+#if __APPLE__ || __FreeBSD__ || \
9
((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE)
10
strerror_r(errno, buf, buflen);
11
return buf;
12
@@ -111,4 +111,4 @@ check_file_accessibility(const std::string& filepath)
13
btllib::check_error(ret != 0, get_strerror() + ": " + filepath);
14
}
15
16
-} // namespace btllib
17
\ No newline at end of file
18
+} // namespace btllib
19
20