Path: blob/main/biology/btllib/files/patch-src_btllib_status.cpp
16461 views
--- src/btllib/status.cpp.orig 2023-07-21 18:23:40 UTC1+++ src/btllib/status.cpp2@@ -84,7 +84,7 @@ get_strerror()3char buf[buflen];4// POSIX and GNU implementation of strerror_r differ, even in function signature5// and so we need to check which one is used6-#if __APPLE__ || \7+#if __APPLE__ || __FreeBSD__ || \8((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE)9strerror_r(errno, buf, buflen);10return buf;11@@ -111,4 +111,4 @@ check_file_accessibility(const std::string& filepath)12btllib::check_error(ret != 0, get_strerror() + ": " + filepath);13}1415-} // namespace btllib16\ No newline at end of file17+} // namespace btllib181920