summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-18 19:44:10 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-18 19:44:10 (GMT)
commita6535fd40b7220350d007b1dcab3fbccaa6a3092 (patch)
tree992e41f061e30f32ff1b3620582e8e172e93582e /Modules/posixmodule.c
parent91b81c480200761d09a4bb46452959ded8957bd0 (diff)
downloadcpython-a6535fd40b7220350d007b1dcab3fbccaa6a3092.zip
cpython-a6535fd40b7220350d007b1dcab3fbccaa6a3092.tar.gz
cpython-a6535fd40b7220350d007b1dcab3fbccaa6a3092.tar.bz2
Shut up warnings for setgroups() on Linux -- you have to #include
<grp.h> it seems. This requires yet another configure test.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index b26c89e..346de54 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -28,6 +28,7 @@ corresponding Unix manual entries for more information on calls.";
#include <sys/types.h>
#include <sys/stat.h>
+
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> /* For WNOHANG */
#endif
@@ -40,6 +41,10 @@ corresponding Unix manual entries for more information on calls.";
#include <fcntl.h>
#endif /* HAVE_FCNTL_H */
+#ifdef HAVE_GRP_H
+#include <grp.h>
+#endif
+
/* pick up declaration of confstr on some systems? */
#ifdef HAVE_UNISTD_H
#include <unistd.h>