mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Added provision for THINK C which doesn't have sys_nerrors or sys_errlist.
This commit is contained in:
parent
6923e134fc
commit
3d54f2d3d9
1 changed files with 6 additions and 1 deletions
|
@ -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>. */
|
Author: Guido van Rossum, CWI Amsterdam, Oct. 1990, <guido@cwi.nl>. */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -16,3 +16,8 @@ strerror(err)
|
||||||
sprintf(buf, "Unknown errno %d", err);
|
sprintf(buf, "Unknown errno %d", err);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef THINK_C
|
||||||
|
int sys_nerr = 0;
|
||||||
|
char *sys_errlist[1] = 0;
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue