From: Sam Hartman Date: Sun, 2 Jul 1995 23:59:05 +0000 (+0000) Subject: ---------------------------------------------------------------------- X-Git-Tag: krb5-1.0-beta6~1595 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=494e3c8d5047512d63436815ba8730f7aa0359de;p=krb5.git ---------------------------------------------------------------------- automatically CVS: CVS: Committing in . CVS: CVS: Modified Files: ---------------------------------------------------------------------- Declare errno as extern int, not just int. This prevents masking the definition in the c library, which can make life interesting under AIX. CVS: git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6221 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 3392971a7..148886cd0 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,10 @@ +Sun Jul 2 19:48:27 1995 Sam Hartman + + * krcp.c: make errno extern + + * krshd.c: errno should be extern so it doesn't mask the libc + definition in AIX. + Tue Jun 27 23:50:56 1995 Tom Yu (tlyu@dragons-lair) * krlogin.c: don't redeclare noltc, defltc if we happen to have diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index 9ca89c18e..57a0f7270 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -108,7 +108,7 @@ int rem; char *colon(); int errs; krb5_sigtype lostconn(); -int errno; +extern int errno; #ifdef NEED_SYS_ERRLIST extern char *sys_errlist[]; #endif diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index c6bdd9dbc..1749a07ce 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -209,7 +209,7 @@ char *progname; int secflag; extern #endif /* CRAY */ -int errno; + /*VARARGS1*/ int error();