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));
|
"initgroups", strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Not supported in android NDK
|
#ifndef __ANDROID__
|
||||||
//endgrent();
|
// Not supported in android NDK
|
||||||
//endpwent();
|
endgrent();
|
||||||
|
endpwent();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if (do_chroot) {
|
if (do_chroot) {
|
||||||
tzset(); /* for proper timestamps in logs */
|
tzset(); /* for proper timestamps in logs */
|
||||||
|
|
Loading…
Reference in a new issue