summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1994-12-14 12:54:54 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1994-12-14 12:54:54 (GMT)
commit8fd2d94e37a987143e464fc4cfcd62d0930b313c (patch)
tree6a508073850916df25e2e45c52524fa8abc248bb /Python/errors.c
parent7ae7768890eda668b62871624abc85e4879406f1 (diff)
downloadcpython-8fd2d94e37a987143e464fc4cfcd62d0930b313c.zip
cpython-8fd2d94e37a987143e464fc4cfcd62d0930b313c.tar.gz
cpython-8fd2d94e37a987143e464fc4cfcd62d0930b313c.tar.bz2
Added hook for better mac error messages.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 7817108..bb3b605 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -60,6 +60,16 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <errno.h>
+#ifdef macintosh
+/*
+** For the mac, there's a function macstrerror in macosmodule.c. We can't
+** call it strerror(), though, since that is already defined (for Think C)
+** in ANSI
+*/
+#define strerror macstrerror
+#include "macdefs.h" /* For CW to find EINTR */
+#endif /* macintosh */
+
extern char *strerror PROTO((int));
/* Last exception stored by err_setval() */