Kaydet (Commit) 3d54f2d3 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 6923e134
/* 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment