From 3d54f2d3d9da6552b2caab0a7cd5b90705456ce7 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 2 Nov 1990 17:51:17 +0000 Subject: [PATCH] Added provision for THINK C which doesn't have sys_nerrors or sys_errlist. --- Python/strerror.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Python/strerror.c b/Python/strerror.c index a78b9173c9b..0885ef1c58b 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