]> granicus.if.org Git - python/commitdiff
Shut up warnings for setgroups() on Linux -- you have to #include
authorGuido van Rossum <guido@python.org>
Thu, 18 Oct 2001 19:44:10 +0000 (19:44 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 18 Oct 2001 19:44:10 +0000 (19:44 +0000)
<grp.h> it seems.  This requires yet another configure test.

Modules/posixmodule.c
configure
configure.in
pyconfig.h.in

index b26c89eccfc642f91776ddcfa1bc7fd1ddd6356d..346de544f5f449e05146280e538b689c77688af4 100644 (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>
index 3fabc13072fc4899ebccdcfb3df4c75ffe5250d3..3ad37273e4ef5b0f2bf2158e1ec2a4ffb50e8a19 100755 (executable)
--- 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 \
index c2d617ea3b876fb60f1c090e4669644ea4f6f5c2..ed8698aeb501213d2b790a35fc6d09858f0eb768 100644 (file)
@@ -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 \
index 8967cc6b74a62154b7794a1ce02b261ba4c7b7a7..fe8d262f441213ac0c54caf99ab670b4b91ce44e 100644 (file)
 /* 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
 
 /* 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
 
 /* 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
 /* 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