From afe4bf62eccab76c75e5a661fb2c16f1391a8417 Mon Sep 17 00:00:00 2001 From: Vilbrekin Date: Sat, 25 Aug 2012 20:01:11 +0200 Subject: [PATCH] Use __ANDROID__ define rather than dirty hard-code to allow android NDK cross-compilation. --- src/tincd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 */ -- 2.39.5