summaryrefslogtreecommitdiff
path: root/getgroups.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-03-25 03:18:36 +0000
committerMartin Pool <mbp@samba.org>2002-03-25 03:18:36 +0000
commit12b159ac4110e23553e94c805b8a121944f47698 (patch)
tree68e630b0acf2f710d4aa752388de577a7ced9a39 /getgroups.c
parent9299c8f0b485f52e519fd410c3b8f7b089deab96 (diff)
downloadrsync-12b159ac4110e23553e94c805b8a121944f47698.tar.gz
Define NGROUPS if not already done.
Diffstat (limited to 'getgroups.c')
-rw-r--r--getgroups.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/getgroups.c b/getgroups.c
index 7d681d16..e747c290 100644
--- a/getgroups.c
+++ b/getgroups.c
@@ -26,6 +26,11 @@
#include "rsync.h"
+#ifndef NGROUPS
+/* It ought to be defined, but just in case. */
+# define NGROUPS 32
+#endif
+
int main(int argc, char *argv[])
{
int n, i;