Fix problem on android api < 23

parent 8ce98f7f
...@@ -244,7 +244,9 @@ static String makeDescriptionImpl(DescriptionStyle style, const char* code, int ...@@ -244,7 +244,9 @@ static String makeDescriptionImpl(DescriptionStyle style, const char* code, int
StringPtr colon = ": "; StringPtr colon = ": ";
StringPtr sysErrorArray; StringPtr sysErrorArray;
#if __USE_GNU // On android before marshmallow only the posix version of stderror_r was
// available, even with __USE_GNU.
#if __USE_GNU && !(defined(__ANDROID_API__) && __ANDROID_API__ < 23)
char buffer[256]; char buffer[256];
if (style == SYSCALL) { if (style == SYSCALL) {
if (sysErrorString == nullptr) { if (sysErrorString == nullptr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment