X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ed7b16e77ac3662db77d362d15e84b69e5cd3fe6..e66e25ec491d0fb3df708000d8494b4d598f0263:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index e5f35c0a..22ba3e8b 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -29,14 +29,16 @@ #include #include -#include /* initgroups() is here on Solaris 2.6 */ -#include /* initgroups() is here on HP-UX 10.20 */ - +#ifdef INITGROUPS_HEADER +#include INITGROUPS_HEADER +#else /* 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); + types as char* and int), but doesn't have a prototype in any of the system + header files. AIX 4.3, SunOS 4.1.3, and ULTRIX 4.2A have the same + problem. */ +extern int initgroups(char*, int); +#endif + #ifdef HAVE_DB1_NDBM_H #include @@ -84,7 +86,7 @@ static struct swit switches[] = { #define VERSIONSW 13 { "version", 0 }, #define HELPSW 14 - { "help", 4 }, + { "help", 0 }, { NULL, 0 } };