From 241db90c310cb930b857d0f8fd20b5428e8ebb68 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sat, 30 May 2009 22:43:17 +0200 Subject: nss_wrapper: try to fix the build of nss_wrapper on solaris. Guenther --- lib/nss_wrapper/nss_wrapper.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/nss_wrapper') diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c index b62be61d12..d7f7b0ba56 100644 --- a/lib/nss_wrapper/nss_wrapper.c +++ b/lib/nss_wrapper/nss_wrapper.c @@ -68,6 +68,11 @@ #define getgrent_r(grdst, buf, buflen, grdstp) ENOSYS #endif +/* not all systems have getgrouplist */ +#ifndef HAVE_GETGROUPLIST +#define getgrouplist(user, group, groups, ngroups) 0 +#endif + /* LD_PRELOAD doesn't work yet, so REWRITE_CALLS is all we support * for now */ #define REWRITE_CALLS -- cgit