Added provision for THINK C which doesn't have sys_nerrors or sys_errlist.
This commit is contained in:
parent
6923e134fc
commit
3d54f2d3d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue