summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-07-06 09:29:52 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-07-06 09:29:52 (GMT)
commitd6640d4bd01874fc469c58c506527465a62d140b (patch)
tree19c64d96ebcdbe6c6d4cae4963b6481aab168013 /configure.in
parentb25229d823e5d2cdd2a398dad157becff7bcda1e (diff)
downloadcpython-d6640d4bd01874fc469c58c506527465a62d140b.zip
cpython-d6640d4bd01874fc469c58c506527465a62d140b.tar.gz
cpython-d6640d4bd01874fc469c58c506527465a62d140b.tar.bz2
Include grp.h in setgroups test. Fixes #765822.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index b82ca6e..8ab79b5 100644
--- a/configure.in
+++ b/configure.in
@@ -2127,10 +2127,14 @@ AC_TRY_COMPILE([
AC_MSG_RESULT(no)
)
+# On some systems, setgroups is in unistd.h, on others, in grp.h
AC_MSG_CHECKING(for setgroups)
AC_TRY_COMPILE([
#include "confdefs.h"
#include <unistd.h>
+#ifdef HAVE_GRP_H
+#include <grp.h>
+#endif
],
void* p = setgroups,
AC_DEFINE(HAVE_SETGROUPS, 1, Define if you have the 'setgroups' function.)