]> diplodocus.org Git - nmh/blobdiff - uip/slocal.c
Modified the mmailid comment to reflect that there are now two types of
[nmh] / uip / slocal.c
index 03dea14832b548a055e1974de12b0273a4ba5758..e5f35c0ab8ae87f473ef34bb31b11eeb01f66b1f 100644 (file)
 #include <signal.h>
 #include <sys/ioctl.h>
 #include <fcntl.h>
-#include <grp.h>
+
+#include <grp.h>     /* initgroups() is here on Solaris 2.6 */
+#include <unistd.h>  /* 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 <db1/ndbm.h>