package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
503 B

diff --git a/src/exception.cpp b/src/exception.cpp
index 72aae7e..16d11ad 100644
--- a/src/exception.cpp
+++ b/src/exception.cpp
@@ -66,7 +66,7 @@ string sys_error::error_str(int err)
buf, sizeof(buf), NULL);
#else
#ifdef _GNU_SOURCE
- #if !defined(__GLIBC__)
+ #if (!defined(__GLIBC__) && !defined(__ANDROID_API__)) || (defined(__ANDROID_API__) && __ANDROID_API__ < 23)
// use the XSI standard behavior.
int e = strerror_r(err, buf, sizeof(buf));
auto s = strerror(e);