fix strerror_r on managarm

This commit is contained in:
lizzie 2026-05-07 18:13:59 +00:00
parent 8533f7a9e6
commit 5811d9685b

View file

@ -33,7 +33,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));