* krshd.c:
* login.c:
* v4rcp.c: Don't include netdb.h or sys/socket.h if krb.h is
included; this works around an Ultrix bug where those headers
aren't protected against multiple inclusion.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10331
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Dec 11 23:20:20 1997 Tom Yu <tlyu@mit.edu>
+
+ * krlogind.c:
+ * krshd.c:
+ * login.c:
+ * v4rcp.c: Don't include netdb.h or sys/socket.h if krb.h is
+ included; this works around an Ultrix bug where those headers
+ aren't protected against multiple inclusion.
+
Thu Nov 20 16:42:54 1997 Tom Yu <tlyu@mit.edu>
* krlogind.c (recvauth): Fix args in call to
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
+#ifndef KERBEROS
+/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */
#include <sys/socket.h>
+#endif
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <sys/file.h>
#else
#include <sgtty.h>
#endif
-
+
+#ifndef KERBEROS
+/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */
#include <netdb.h>
+#endif
#include <syslog.h>
#include <string.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/param.h>
+#ifndef KERBEROS
+/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */
#include <sys/socket.h>
+#endif
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/time.h>
#endif
#include <signal.h>
+#ifndef KERBEROS
+/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */
#include <netdb.h>
-
+#endif
+
#ifdef CRAY
#ifndef NO_UDB
#include <udb.h>
#include "krb5.h"
#include "com_err.h"
#include "loginpaths.h"
+#include <kerberosIV/krb.h>
#define ARGSTR "ek54ciD:S:M:AP:?L:"
krb5_principal client;
krb5_authenticator *kdata;
-#include <kerberosIV/krb.h>
AUTH_DAT *v4_kdata;
KTEXT v4_ticket;
#ifdef KRB4
#include <krb.h>
-#include <netdb.h>
#include <netinet/in.h>
#ifdef HAVE_KRB4_PROTO_H
#include <krb4-proto.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/file.h>
+#ifndef KERBEROS
+/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */
#include <sys/socket.h>
+#endif
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <signal.h>
#include <pwd.h>
#include <ctype.h>
+#ifndef KERBEROS
+/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */
#include <netdb.h>
+#endif
#include <errno.h>
#ifdef KERBEROS
#include <krb.h>