From 6a366beb4077418ccc9a0273dda2d178d3b484d8 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 7 May 2026 18:13:59 +0000 Subject: [PATCH] fix strerror_r on managarm --- src/common/error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/error.cpp b/src/common/error.cpp index 1b2009db71..17d2f452bf 100644 --- a/src/common/error.cpp +++ b/src/common/error.cpp @@ -30,7 +30,7 @@ std::string NativeErrorToString(int e) { return ret; #else char err_str[255]; -#if defined(ANDROID) || \ +#if defined(__managarm__) || defined(ANDROID) || \ (defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600))) // Thread safe (GNU-specific) const char* str = strerror_r(e, err_str, sizeof(err_str));