]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r2264: Fix for #1741. Define a struct nss_groupsbymem (thanks lukeh!) for
authorTim Potter <tpot@samba.org>
Thu, 9 Sep 2004 03:40:27 +0000 (03:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:38 +0000 (10:52 -0500)
HPUX 11 which doesn't have one of its own.

source/nsswitch/winbind_nss_solaris.c

index 1afa5677462b954d59ab3bce21857a13dc22b672..f89e7204cec5fb39b8afbfac17d08239fc7dfc12 100644 (file)
 
 #define NSS_ARGS(args) ((nss_XbyY_args_t *)args)
 
+#ifdef HPUX
+
+/*
+ * HP-UX 11 has no definiton of the nss_groupsbymem structure.   This
+ * definition is taken from the nss_ldap project at:
+ *  http://www.padl.com/OSS/nss_ldap.html
+ */
+
+struct nss_groupsbymem {
+       const char *username;
+       gid_t *gid_array;
+       int maxgids;
+       int force_slow_way;
+       int (*str2ent)(const char *instr, int instr_len, void *ent, 
+                     char *buffer, int buflen);
+       nss_status_t (*process_cstr)(const char *instr, int instr_len, 
+                                   struct nss_groupsbymem *);
+       int numgids;
+};
+
+#endif /* HPUX */
+
 #define make_pwent_str(dest, src)                                      \
 {                                                                      \
   if((dest = get_static(buffer, buflen, strlen(src)+1)) == NULL)       \