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: 1.0.19-android-1~1 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=ec031a21e325a234330c89f5a6949b7d30ad1498;p=tinc 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 */