X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=e5f35c0ab8ae87f473ef34bb31b11eeb01f66b1f;hb=6e0e2e4490ebb9daf1f62ed7a2d30412551772ee;hp=c6aa286c54fc5187d67ea3c0d73a31ce59fd7bcd;hpb=58653b7e9a9f44dc35a4d0f0a8584f425f14fb0c;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index c6aa286..e5f35c0 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -29,6 +29,15 @@ #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