mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 20:25:17 +03:00
13 lines
920 B
Diff
13 lines
920 B
Diff
diff --git a/ext_src/yocto/ext/filesystem.hpp b/ext_src/yocto/ext/filesystem.hpp
|
|
index 860f5b2..c41e0e7 100644
|
|
--- a/ext_src/yocto/ext/filesystem.hpp
|
|
+++ b/ext_src/yocto/ext/filesystem.hpp
|
|
@@ -1525,7 +1525,7 @@ GHC_INLINE std::string systemErrorText(ErrorNumber code = 0)
|
|
std::string msg = toUtf8(std::wstring((LPWSTR)msgBuf));
|
|
LocalFree(msgBuf);
|
|
return msg;
|
|
-#elif defined(GHC_OS_MACOS) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE)) || (defined(GHC_OS_ANDROID) && __ANDROID_API__ < 23) || defined(EMSCRIPTEN)
|
|
+#elif true || defined(GHC_OS_MACOS) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE)) || (defined(GHC_OS_ANDROID) && __ANDROID_API__ < 23) || defined(EMSCRIPTEN)
|
|
char buffer[512];
|
|
int rc = strerror_r(code ? code : errno, buffer, sizeof(buffer));
|
|
return rc == 0 ? (const char*)buffer : "Error in strerror_r!";
|