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)); "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 */