[build] Increase android_api_level from 21 to 24.

Bug: https://github.com/dart-lang/sdk/issues/61664
Change-Id: I10a99fbe03df32f056765913e75f14b63bc33bc1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/453681
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ryan Macnak
2025-10-07 13:17:21 -07:00
committed by Commit Queue
parent e2d0d10f24
commit 6938441679
3 changed files with 23 additions and 18 deletions
+6 -1
View File
@@ -38,10 +38,15 @@ inline uint64_t Utils::HostToLittleEndian64(uint64_t value) {
}
inline char* Utils::StrError(int err, char* buffer, size_t bufsize) {
if (strerror_r(err, buffer, bufsize) != 0) {
#if defined(__USE_GNU) && __ANDROID_API__ >= 23
return strerror_r(err, buffer, bufsize);
#else
int result = strerror_r(err, buffer, bufsize);
if (result != 0) {
snprintf(buffer, bufsize, "%s", "strerror_r failed");
}
return buffer;
#endif
}
} // namespace dart