aboutsummaryrefslogtreecommitdiffstats
path: root/uidlist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-02-04 17:49:36 +0000
committerWayne Davison <wayned@samba.org>2004-02-04 17:49:36 +0000
commit1df395f7c211698420488a3f6600fd5cf50b7785 (patch)
tree0da20d64d22cd878df8d36a3f97dc131f09c8ad1 /uidlist.c
parent5fdf2e706396803f1738f54b7fd65723d39a0fcf (diff)
downloadandroid_external_rsync-1df395f7c211698420488a3f6600fd5cf50b7785.tar.gz
android_external_rsync-1df395f7c211698420488a3f6600fd5cf50b7785.tar.bz2
android_external_rsync-1df395f7c211698420488a3f6600fd5cf50b7785.zip
Use the new HAVE_GETGROUPS define.
Diffstat (limited to 'uidlist.c')
-rw-r--r--uidlist.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/uidlist.c b/uidlist.c
index 170b9e62..0319d606 100644
--- a/uidlist.c
+++ b/uidlist.c
@@ -25,7 +25,10 @@
#include "rsync.h"
-#ifdef GETGROUPS_T
+#ifdef HAVE_GETGROUPS
+# if !defined(GETGROUPS_T)
+# define GETGROUPS_T gid_t
+# endif
# ifndef NGROUPS_MAX
/* It ought to be defined, but just in case. */
# define NGROUPS_MAX 32
@@ -117,7 +120,7 @@ static uid_t match_uid(uid_t uid)
static int is_in_group(gid_t gid)
{
-#ifdef GETGROUPS_T
+#ifdef HAVE_GETGROUPS
static gid_t last_in = GID_NONE, last_out;
static int ngroups = -2;
static GETGROUPS_T *gidset;