avoid glibc

cause problems on musl systems
This commit is contained in:
Ishimoto Shinobu 2019-05-21 22:41:05 +09:00 committed by GitHub
parent 2375e38c97
commit a747aacc23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,9 +26,7 @@ getprogname(void)
#if defined(__ANDROID_API__) && __ANDROID_API__ < 21
extern const char *__progname;
return __progname;
#elif defined(__GLIBC__)
return program_invocation_short_name;
#else
#error "Cannot emulate getprogname"
return program_invocation_short_name;
#endif
}