From: Tom Yu Date: Fri, 12 Dec 1997 04:26:09 +0000 (+0000) Subject: * krlogind.c: X-Git-Tag: krb5-1.1-beta1~917 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f516bff55492104069d377bb679f4d476ebb6d20;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10331 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 7154e928a..6848c1dbe 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,12 @@ +Thu Dec 11 23:20:20 1997 Tom Yu + + * 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 * krlogind.c (recvauth): Fix args in call to diff --git a/src/appl/bsd/krlogind.c b/src/appl/bsd/krlogind.c index 270fbf7ba..d68b7757c 100644 --- a/src/appl/bsd/krlogind.c +++ b/src/appl/bsd/krlogind.c @@ -105,7 +105,10 @@ char copyright[] = #include #include #include +#ifndef KERBEROS +/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */ #include +#endif #include #include #include @@ -146,8 +149,11 @@ char copyright[] = #else #include #endif - + +#ifndef KERBEROS +/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */ #include +#endif #include #include #include diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index 7e5573a69..991856399 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -87,7 +87,10 @@ char copyright[] = #include #include #include +#ifndef KERBEROS +/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */ #include +#endif #include #include #include @@ -115,8 +118,11 @@ char copyright[] = #endif #include +#ifndef KERBEROS +/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */ #include - +#endif + #ifdef CRAY #ifndef NO_UDB #include @@ -149,6 +155,7 @@ char copyright[] = #include "krb5.h" #include "com_err.h" #include "loginpaths.h" +#include #define ARGSTR "ek54ciD:S:M:AP:?L:" @@ -492,7 +499,6 @@ char *kremuser; krb5_principal client; krb5_authenticator *kdata; -#include AUTH_DAT *v4_kdata; KTEXT v4_ticket; diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index 4aa2e8759..3afe88091 100644 --- a/src/appl/bsd/login.c +++ b/src/appl/bsd/login.c @@ -172,7 +172,6 @@ typedef sigtype (*handler)(); #ifdef KRB4 #include -#include #include #ifdef HAVE_KRB4_PROTO_H #include diff --git a/src/appl/bsd/v4rcp.c b/src/appl/bsd/v4rcp.c index 4ed931584..5c0b5896c 100644 --- a/src/appl/bsd/v4rcp.c +++ b/src/appl/bsd/v4rcp.c @@ -49,7 +49,10 @@ static char sccsid[] = "@(#)rcp.c 5.10 (Berkeley) 9/20/88"; #include #include #include +#ifndef KERBEROS +/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */ #include +#endif #include #include #include @@ -64,7 +67,10 @@ static char sccsid[] = "@(#)rcp.c 5.10 (Berkeley) 9/20/88"; #include #include #include +#ifndef KERBEROS +/* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */ #include +#endif #include #ifdef KERBEROS #include