summaryrefslogtreecommitdiff
path: root/getgroups.h
diff options
context:
space:
mode:
Diffstat (limited to 'getgroups.h')
-rw-r--r--getgroups.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/getgroups.h b/getgroups.h
new file mode 100644
index 0000000..982dfa0
--- /dev/null
+++ b/getgroups.h
@@ -0,0 +1,10 @@
+#if HAVE_GETGROUPS
+#if HAVE_POSIX_GETGROUPS
+/* We love POSIX. */
+#else
+/* OK, so you've got getgroups, but you don't have the POSIX semantics
+of a zero first argument. The conclusion is that you're on a reasonably
+pure BSD system, and we can include <sys/param.h> for NGROUPS. */
+#include <sys/param.h>
+#endif
+#endif