Browse Source

fix strerror_r on managarm

eden-managarm
lizzie 1 month ago
parent
commit
ca7d6e4ea5
  1. 2
      src/common/error.cpp

2
src/common/error.cpp

@ -30,7 +30,7 @@ std::string NativeErrorToString(int e) {
return ret; return ret;
#else #else
char err_str[255]; char err_str[255];
#if defined(ANDROID) || \
#if defined(__managarm__) || defined(ANDROID) || \
(defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600))) (defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600)))
// Thread safe (GNU-specific) // Thread safe (GNU-specific)
const char* str = strerror_r(e, err_str, sizeof(err_str)); const char* str = strerror_r(e, err_str, sizeof(err_str));

Loading…
Cancel
Save