[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha7-1925-g241db90
Günther Deschner
gd at samba.org
Sat May 30 21:09:24 GMT 2009
The branch, master has been updated
via 241db90c310cb930b857d0f8fd20b5428e8ebb68 (commit)
from ff736dfcadbac8dd7e220eb1f10aa2dfeb1cf7e7 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 241db90c310cb930b857d0f8fd20b5428e8ebb68
Author: Günther Deschner <gd at samba.org>
Date: Sat May 30 22:43:17 2009 +0200
nss_wrapper: try to fix the build of nss_wrapper on solaris.
Guenther
-----------------------------------------------------------------------
Summary of changes:
lib/nss_wrapper/nss_wrapper.c | 5 +++++
lib/replace/system/config.m4 | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c
index b62be61..d7f7b0b 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
diff --git a/lib/replace/system/config.m4 b/lib/replace/system/config.m4
index 5c9b53d..e219658 100644
--- a/lib/replace/system/config.m4
+++ b/lib/replace/system/config.m4
@@ -116,6 +116,7 @@ AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, si
#include <unistd.h>
#include <grp.h>
])
+AC_CHECK_FUNCS(getgrouplist)
# locale
AC_CHECK_HEADERS(ctype.h locale.h)
--
Samba Shared Repository
More information about the samba-cvs
mailing list