summaryrefslogtreecommitdiff
path: root/lib/nss_wrapper
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-30 22:43:17 +0200
committerGünther Deschner <gd@samba.org>2009-05-30 23:08:12 +0200
commit241db90c310cb930b857d0f8fd20b5428e8ebb68 (patch)
tree4d9c7203b08609282a441405a33d9b7f5662401d /lib/nss_wrapper
parentff736dfcadbac8dd7e220eb1f10aa2dfeb1cf7e7 (diff)
downloadsamba-241db90c310cb930b857d0f8fd20b5428e8ebb68.tar.gz
samba-241db90c310cb930b857d0f8fd20b5428e8ebb68.tar.bz2
samba-241db90c310cb930b857d0f8fd20b5428e8ebb68.zip
nss_wrapper: try to fix the build of nss_wrapper on solaris.
Guenther
Diffstat (limited to 'lib/nss_wrapper')
-rw-r--r--lib/nss_wrapper/nss_wrapper.c5
1 files changed, 5 insertions, 0 deletions
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