[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.201,2.202
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 18 Oct 2001 12:44:12 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv26104/Modules
Modified Files:
posixmodule.c
Log Message:
Shut up warnings for setgroups() on Linux -- you have to #include
<grp.h> it seems. This requires yet another configure test.
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.201
retrieving revision 2.202
diff -C2 -d -r2.201 -r2.202
*** posixmodule.c 2001/10/18 04:06:00 2.201
--- posixmodule.c 2001/10/18 19:44:10 2.202
***************
*** 29,32 ****
--- 29,33 ----
#include <sys/types.h>
#include <sys/stat.h>
+
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> /* For WNOHANG */
***************
*** 40,43 ****
--- 41,48 ----
#include <fcntl.h>
#endif /* HAVE_FCNTL_H */
+
+ #ifdef HAVE_GRP_H
+ #include <grp.h>
+ #endif
/* pick up declaration of confstr on some systems? */