From: Guido van Rossum Date: Fri, 2 Nov 1990 17:51:17 +0000 (+0000) Subject: Added provision for THINK C which doesn't have sys_nerrors or sys_errlist. X-Git-Tag: v0.9.8~1122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d54f2d3d9da6552b2caab0a7cd5b90705456ce7;p=thirdparty%2FPython%2Fcpython.git Added provision for THINK C which doesn't have sys_nerrors or sys_errlist. --- diff --git a/Python/strerror.c b/Python/strerror.c index a78b9173c9b1..0885ef1c58b2 100644 --- a/Python/strerror.c +++ b/Python/strerror.c @@ -1,4 +1,4 @@ -/* PD implementation of strerror() for BSD derivatives that don't have it. +/* PD implementation of strerror() for systems that don't have it. Author: Guido van Rossum, CWI Amsterdam, Oct. 1990, . */ #include @@ -16,3 +16,8 @@ strerror(err) sprintf(buf, "Unknown errno %d", err); return buf; } + +#ifdef THINK_C +int sys_nerr = 0; +char *sys_errlist[1] = 0; +#endif