summaryrefslogtreecommitdiff
path: root/getgroups.h
diff options
context:
space:
mode:
authortjg <tjg>1999-01-19 12:17:39 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:14 +0100
commitcb75624ddc0826e049781a124b53baf05585f0d1 (patch)
tree6fad44921723eab2f2eb1c76b7214b4e79b818f3 /getgroups.h
parent91f267363bbbf99ed9353af44ccb07748ea880dd (diff)
Initial revision
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