summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-12 02:51:19 +0100
committerGünther Deschner <gd@samba.org>2011-02-14 11:47:19 +0100
commit80b4e1e9856ed180015e32af2d8762a9acd83910 (patch)
tree885a5d2ee8ec88f2dea82fe5739966b6adf7b7f6 /source3/lib
parentf10cba1a0133199f1e7a6db0d70c50834e41b4bd (diff)
downloadsamba-80b4e1e9856ed180015e32af2d8762a9acd83910.tar.gz
samba-80b4e1e9856ed180015e32af2d8762a9acd83910.tar.bz2
samba-80b4e1e9856ed180015e32af2d8762a9acd83910.zip
s3: move some defines to a better place.
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/system.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 48623b9815..24d3c09d58 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -1134,6 +1134,10 @@ void sys_srandom(unsigned int seed)
#endif
}
+#ifndef NGROUPS_MAX
+#define NGROUPS_MAX 32 /* Guess... */
+#endif
+
/**************************************************************************
Returns equivalent to NGROUPS_MAX - using sysconf if needed.
****************************************************************************/
@@ -1154,6 +1158,13 @@ int groups_max(void)
****************************************************************************/
#if defined(HAVE_BROKEN_GETGROUPS)
+
+#ifdef HAVE_BROKEN_GETGROUPS
+#define GID_T int
+#else
+#define GID_T gid_t
+#endif
+
static int sys_broken_getgroups(int setlen, gid_t *gidset)
{
GID_T gid;