summaryrefslogtreecommitdiff
path: root/group.h
diff options
context:
space:
mode:
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