#include <signal.h>
#include <sys/ioctl.h>
#include <fcntl.h>
-#include <grp.h>
+
+#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. 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 <db1/ndbm.h>
#include <utmp.h>
-extern int initgroups(char*, int); /* def'd in libc.a but no .h on AIX 4.1 */
-
#ifndef UTMP_FILE
# ifdef _PATH_UTMP
# define UTMP_FILE _PATH_UTMP
#define VERSIONSW 13
{ "version", 0 },
#define HELPSW 14
- { "help", 4 },
+ { "help", 0 },
{ NULL, 0 }
};