initgroups(), pty_logwtmp()/pty_make_sane_hostname(), and wait()
prototypes. For local initgroups definition, conditionalize on
HAVE_INITGROUPS and not __SCO__.
* krcp.c: Include <sys/wait.h> for wait()/waitpid() prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13321
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-11 Ezra Peisach <epeisach@mit.edu>
+
+ * krshd.c: Include <grp.h>, <libpty.h>, and <sys/wait.h> for
+ initgroups(), pty_logwtmp()/pty_make_sane_hostname(), and wait()
+ prototypes. For local initgroups definition, conditionalize on
+ HAVE_INITGROUPS and not __SCO__.
+
+ * krcp.c: Include <sys/wait.h> for wait()/waitpid() prototype.
+
2001-06-04 Ezra Peisach <epeisach@mit.edu>
* krlogin.c: Always provide prototype for setsignal and not if
#else
#include <varargs.h>
#endif
+#include <sys/wait.h>
#ifdef KERBEROS
#include <krb5.h>
#include <arpa/inet.h>
#include <stdio.h>
+#include <grp.h>
#include <errno.h>
#include <pwd.h>
#include <ctype.h>
#include <string.h>
+#include <libpty.h>
+#include <sys/wait.h>
#ifdef HAVE_SYS_LABEL_H
/* only SunOS 4? */
void usage(void), getstr(int, char *, int, char *),
doit(int, struct sockaddr_in *);
-#ifdef __SCO__
-/* sco has getgroups and setgroups but no initgroups */
+#ifndef HAVE_INITGROUPS
int initgroups(char* name, gid_t basegid) {
gid_t others[NGROUPS_MAX+1];
int ngrps;
#endif
int valid_checksum;
int cnt;
- register char *p;
char *crypt();
struct passwd *pwd;
char *path;