X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fslocal.c;h=e12b940e26e1c7c677625e4abbbe2103664623c2;hp=b665280bbb32717bea0aced2629e262e0085706a;hb=b1450ec537bd31be606633aa363201cc2ed95b9a;hpb=c4ce52f0d1cc06ae49317c31a068a5e555bf54d6 diff --git a/uip/slocal.c b/uip/slocal.c index b665280..e12b940 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -29,14 +29,15 @@ #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 and SunOS 4.1.3 have the same problem. */ +extern int initgroups(char*, int); +#endif + #ifdef HAVE_DB1_NDBM_H #include