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: import-tinc-1.1~286^2~7 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=afe4bf62eccab76c75e5a661fb2c16f1391a8417;p=meshlink 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 */