From 27c4c2897db6c26b52bb44a60bf846803fce2abc Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 23 Apr 1991 13:58:02 +0000 Subject: [PATCH] strerror may be a #define on some systems git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2029 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/posix/syslog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.26.2