From a6535fd40b7220350d007b1dcab3fbccaa6a3092 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 18 Oct 2001 19:44:10 +0000 Subject: [PATCH] Shut up warnings for setgroups() on Linux -- you have to #include it seems. This requires yet another configure test. --- Modules/posixmodule.c | 5 +++++ configure | 4 ++-- configure.in | 2 +- pyconfig.h.in | 17 ++++++++++------- 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index b26c89eccfc..346de544f5f 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -28,6 +28,7 @@ corresponding Unix manual entries for more information on calls."; #include #include + #ifdef HAVE_SYS_WAIT_H #include /* For WNOHANG */ #endif @@ -40,6 +41,10 @@ corresponding Unix manual entries for more information on calls."; #include #endif /* HAVE_FCNTL_H */ +#ifdef HAVE_GRP_H +#include +#endif + /* pick up declaration of confstr on some systems? */ #ifdef HAVE_UNISTD_H #include diff --git a/configure b/configure index 3fabc13072f..3ad37273e4e 100755 --- a/configure +++ b/configure @@ -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 c2d617ea3b8..ed8698aeb50 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 8967cc6b74a..fe8d262f441 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 header file. */ -#undef HAVE_DB_H +/* Define if you have the header file. */ +#undef HAVE_DB_185_H /* Define if you have the header file. */ #undef HAVE_DB1_NDBM_H -/* Define if you have the header file. */ -#undef HAVE_DB_185_H +/* Define if you have the header file. */ +#undef HAVE_DB_H /* Define if you have the header file. */ #undef HAVE_DIRENT_H @@ -612,6 +612,9 @@ /* Define if you have the header file. */ #undef HAVE_GDBM_NDBM_H +/* Define if you have the header file. */ +#undef HAVE_GRP_H + /* Define if you have the header file. */ #undef HAVE_LANGINFO_H