Put in prototype for initgroups() to get rid of "default prototype" warning. On
authorDan Harkless <dan@harkless.org>
Tue, 25 Jan 2000 05:52:31 +0000 (05:52 +0000)
committerDan Harkless <dan@harkless.org>
Tue, 25 Jan 2000 05:52:31 +0000 (05:52 +0000)
AIX 4.1, at least, the function exists in libc.a but doesn't exist in any .h.

uip/slocal.c

index 03dea14..dce9663 100644 (file)
@@ -38,6 +38,8 @@
 
 #include <utmp.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
 #ifndef UTMP_FILE
 # ifdef _PATH_UTMP
 #  define UTMP_FILE _PATH_UTMP