Use __ANDROID__ define rather than dirty hard-code to allow android NDK cross-compilation.

This commit is contained in:
Vilbrekin 2012-08-25 20:01:11 +02:00 committed by Guus Sliepen
parent c6720f1a60
commit afe4bf62ec

View file

@ -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 */