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:59 +0100
commitb87bfedf65c289bf0ee5338c9e10492b70b1e8e0 (patch)
tree906ba5d55d6993f59d7bb1def63d494bafd38728 /group.h
parent5556dde4d3ad4e34267320b1411fc090b18a24b0 (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