Shut up warnings for setgroups() on Linux -- you have to #include

<grp.h> it seems.  This requires yet another configure test.
This commit is contained in:
Guido van Rossum 2001-10-18 19:44:10 +00:00
parent 91b81c4802
commit a6535fd40b
4 changed files with 18 additions and 10 deletions

View file

@ -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>