Use __ANDROID__ define rather than dirty hard-code to allow android NDK cross-compilation.
This commit is contained in:
parent
c6720f1a60
commit
afe4bf62ec
1 changed files with 5 additions and 3 deletions
|
@ -467,9 +467,11 @@ static bool drop_privs() {
|
|||
"initgroups", strerror(errno));
|
||||
return false;
|
||||
}
|
||||
// Not supported in android NDK
|
||||
//endgrent();
|
||||
//endpwent();
|
||||
#ifndef __ANDROID__
|
||||
// Not supported in android NDK
|
||||
endgrent();
|
||||
endpwent();
|
||||
#endif
|
||||
}
|
||||
if (do_chroot) {
|
||||
tzset(); /* for proper timestamps in logs */
|
||||
|
|
Loading…
Reference in a new issue