mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
91b81c4802
commit
a6535fd40b
4 changed files with 18 additions and 10 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue