diff options
author | Guido van Rossum <guido@python.org> | 2001-10-18 19:44:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-10-18 19:44:10 (GMT) |
commit | a6535fd40b7220350d007b1dcab3fbccaa6a3092 (patch) | |
tree | 992e41f061e30f32ff1b3620582e8e172e93582e | |
parent | 91b81c480200761d09a4bb46452959ded8957bd0 (diff) | |
download | cpython-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.
-rw-r--r-- | Modules/posixmodule.c | 5 | ||||
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | pyconfig.h.in | 17 |
4 files changed, 18 insertions, 10 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> @@ -1,6 +1,6 @@ #! /bin/sh -# From configure.in Revision: 1.270 +# From configure.in Revision: 1.272 # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 @@ -1968,7 +1968,7 @@ EOF fi -for ac_hdr in dlfcn.h fcntl.h limits.h langinfo.h locale.h \ +for ac_hdr in dlfcn.h fcntl.h grp.h limits.h langinfo.h locale.h \ ncurses.h poll.h pthread.h \ signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ diff --git a/configure.in b/configure.in index c2d617e..ed8698a 100644 --- a/configure.in +++ b/configure.in @@ -499,7 +499,7 @@ dnl AC_MSG_RESULT($cpp_type) # checks for header files AC_HEADER_STDC -AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h langinfo.h locale.h \ +AC_CHECK_HEADERS(dlfcn.h fcntl.h grp.h limits.h langinfo.h locale.h \ ncurses.h poll.h pthread.h \ signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ diff --git a/pyconfig.h.in b/pyconfig.h.in index 8967cc6..fe8d262 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -312,9 +312,6 @@ /* The number of bytes in a wchar_t. */ #undef SIZEOF_WCHAR_T -/* Define if you have the _getpty function. */ -#undef HAVE__GETPTY - /* Define if you have the alarm function. */ #undef HAVE_ALARM @@ -417,6 +414,9 @@ /* Define if you have the getpriority function. */ #undef HAVE_GETPRIORITY +/* Define if you have the _getpty function. */ +#undef HAVE__GETPTY + /* Define if you have the getpwent function. */ #undef HAVE_GETPWENT @@ -591,14 +591,14 @@ /* Define if you have the waitpid function. */ #undef HAVE_WAITPID -/* Define if you have the <db.h> header file. */ -#undef HAVE_DB_H +/* Define if you have the <db_185.h> header file. */ +#undef HAVE_DB_185_H /* Define if you have the <db1/ndbm.h> header file. */ #undef HAVE_DB1_NDBM_H -/* Define if you have the <db_185.h> header file. */ -#undef HAVE_DB_185_H +/* Define if you have the <db.h> header file. */ +#undef HAVE_DB_H /* Define if you have the <dirent.h> header file. */ #undef HAVE_DIRENT_H @@ -612,6 +612,9 @@ /* Define if you have the <gdbm/ndbm.h> header file. */ #undef HAVE_GDBM_NDBM_H +/* Define if you have the <grp.h> header file. */ +#undef HAVE_GRP_H + /* Define if you have the <langinfo.h> header file. */ #undef HAVE_LANGINFO_H |