strerror may be a #define on some systems
authorJohn Kohl <jtkohl@mit.edu>
Tue, 23 Apr 1991 13:58:02 +0000 (13:58 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 23 Apr 1991 13:58:02 +0000 (13:58 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2029 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/posix/syslog.c

index 5f30fc47f4036d27a9c1f00a708d9c36b2b5b7a5..d9e2e8a3aae2a03a85c7d486fe48b4779c757809 100644 (file)
@@ -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;