X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=e5f35c0ab8ae87f473ef34bb31b11eeb01f66b1f;hb=ed7b16e77ac3662db77d362d15e84b69e5cd3fe6;hp=a306cadaefe6c96767b8310675be6f1380de291b;hpb=ae4c23b5c35a12a8a0a39eb6194c48f6ae4ca055;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index a306cad..e5f35c0 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -27,9 +27,23 @@ #include #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 +#else +#include +#endif + #include #ifndef UTMP_FILE