]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added provision for THINK C which doesn't have sys_nerrors or sys_errlist.
authorGuido van Rossum <guido@python.org>
Fri, 2 Nov 1990 17:51:17 +0000 (17:51 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 2 Nov 1990 17:51:17 +0000 (17:51 +0000)
Python/strerror.c

index a78b9173c9b1a26b275ae6a2ae80c8e7161a5f52..0885ef1c58b232e60fb740b507056f808cc617d9 100644 (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