From: John Kohl Date: Tue, 23 Apr 1991 13:58:02 +0000 (+0000) Subject: strerror may be a #define on some systems X-Git-Tag: krb5-1.0-alpha5~72 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=27c4c2897db6c26b52bb44a60bf846803fce2abc;p=krb5.git strerror may be a #define on some systems git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2029 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/posix/syslog.c b/src/lib/krb5/posix/syslog.c index 5f30fc47f..d9e2e8a3a 100644 --- a/src/lib/krb5/posix/syslog.c +++ b/src/lib/krb5/posix/syslog.c @@ -130,8 +130,10 @@ vsyslog(pri, fmt, ap) /* substitute error message for %m */ { register char ch, *t1, *t2; - char *strerror(); - +#ifndef strerror + extern char *strerror(); +#endif + for (t1 = fmt_cpy; ch = *fmt; ++fmt) if (ch == '%' && fmt[1] == 'm') { ++fmt;