summaryrefslogtreecommitdiff
path: root/group.h
diff options
context:
space:
mode:
authorToby Goodwin <tgoodwin@cygnus.co.uk>1997-07-07 00:00:01 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:09 +0100
commit671e1e2d1599aa8c5f1010b3fe75c151c56a7403 (patch)
tree906ba5d55d6993f59d7bb1def63d494bafd38728 /group.h
parenta076248389c82276e079756bee26c011b03f70f2 (diff)
beta: rc-1.5b2
Diffstat (limited to 'group.h')
-rw-r--r--group.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/group.h b/group.h
new file mode 100644
index 0000000..8e78468
--- /dev/null
+++ b/group.h
@@ -0,0 +1,9 @@
+/* Solaris / `gcc -ansi' only defines NGROUPS_MAX in <limits.h> if
+_POSIX_C_SOURCE is defined. */
+#define _POSIX_C_SOURCE 1
+#include <limits.h>
+#undef _POSIX_C_SOURCE
+
+#if defined(NGROUPS) && !defined(NGROUPS_MAX)
+#define NGROUPS_MAX NGROUPS
+#endif