From: Vilbrekin Date: Sat, 25 Aug 2012 18:01:11 +0000 (+0200) Subject: Use __ANDROID__ define rather than dirty hard-code to allow android NDK cross-compila... X-Git-Tag: release-1.1pre3~36^2~7 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=afe4bf62eccab76c75e5a661fb2c16f1391a8417 Use __ANDROID__ define rather than dirty hard-code to allow android NDK cross-compilation. --- diff --git a/src/tincd.c b/src/tincd.c index 7b74cd6c..566031a3 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -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 */