projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typecast to get rid of warnings that index into cc[] is a char.
[mmh]
/
uip
/
slocal.c
diff --git
a/uip/slocal.c
b/uip/slocal.c
index
a306cad
..
dce9663
100644
(file)
--- a/
uip/slocal.c
+++ b/
uip/slocal.c
@@
-27,11
+27,19
@@
#include <pwd.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <pwd.h>
#include <signal.h>
#include <sys/ioctl.h>
-#include <ndbm.h>
#include <fcntl.h>
#include <fcntl.h>
+#include <grp.h>
+
+#ifdef HAVE_DB1_NDBM_H
+#include <db1/ndbm.h>
+#else
+#include <ndbm.h>
+#endif
#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