diff Python/strerror.c @ 61:5c4dd9348e81 legacy-trunk

Added provision for THINK C which doesn't have sys_nerrors or sys_errlist.
author Guido van Rossum <guido@python.org>
date Fri, 02 Nov 1990 17:51:17 +0000
parents fc6fcd7df4f7
children 853b736a6a9e
line wrap: on
line diff
--- a/Python/strerror.c	Fri Nov 02 17:50:43 1990 +0000
+++ b/Python/strerror.c	Fri Nov 02 17:51:17 1990 +0000
@@ -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 @@
 	sprintf(buf, "Unknown errno %d", err);
 	return buf;
 }
+
+#ifdef THINK_C
+int sys_nerr = 0;
+char *sys_errlist[1] = 0;
+#endif