From ed7b16e77ac3662db77d362d15e84b69e5cd3fe6 Mon Sep 17 00:00:00 2001 From: Dan Harkless Date: Tue, 25 Jan 2000 07:45:10 +0000 Subject: [PATCH 1/1] The prototype I gave for initgroups() which was documented in the AIX 4.1 info page conflicted with the real one that comes from grp.h on Solaris 2.6. Adjusted it so the local prototype is correct on both (hopefully all) platforms. Also added an include of , which is where initgroups() lives on HP-UX 10.20. --- uip/slocal.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/uip/slocal.c b/uip/slocal.c index dce9663..e5f35c0 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -28,7 +28,15 @@ #include #include #include -#include + +#include /* initgroups() is here on Solaris 2.6 */ +#include /* initgroups() is here on HP-UX 10.20 */ + +/* On AIX 4.1, initgroups() is defined and even documented (giving the parameter + types as "char*" and "int"), but doesn't have a prototype in any of the + system header files. On other OSes, this should be a duplicate prototype + that won't cause any errors or warnings. */ +extern int initgroups(const char*, gid_t); #ifdef HAVE_DB1_NDBM_H #include @@ -38,8 +46,6 @@ #include -extern int initgroups(char*, int); /* def'd in libc.a but no .h on AIX 4.1 */ - #ifndef UTMP_FILE # ifdef _PATH_UTMP # define UTMP_FILE _PATH_UTMP -- 1.7.10.4