Added provision for THINK C which doesn't have sys_nerrors or sys_errlist.

This commit is contained in:
Guido van Rossum 1990-11-02 17:51:17 +00:00
parent 6923e134fc
commit 3d54f2d3d9
1 changed files with 6 additions and 1 deletions

View File

@ -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, <guido@cwi.nl>. */
#include <stdio.h>
@ -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