diff options
author | Guido van Rossum <guido@python.org> | 1990-11-02 17:51:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1990-11-02 17:51:17 (GMT) |
commit | 3d54f2d3d9da6552b2caab0a7cd5b90705456ce7 (patch) | |
tree | 6f9635690a6d19ada5e8828b22e0f4f415382237 /Python/strerror.c | |
parent | 6923e134fc525b3d8a8089267ecb4bb98d08d3a3 (diff) | |
download | cpython-3d54f2d3d9da6552b2caab0a7cd5b90705456ce7.zip cpython-3d54f2d3d9da6552b2caab0a7cd5b90705456ce7.tar.gz cpython-3d54f2d3d9da6552b2caab0a7cd5b90705456ce7.tar.bz2 |
Added provision for THINK C which doesn't have sys_nerrors or sys_errlist.
Diffstat (limited to 'Python/strerror.c')
-rw-r--r-- | Python/strerror.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Python/strerror.c b/Python/strerror.c index a78b917..0885ef1c 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, <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 |