diff options
author | Guido van Rossum <guido@python.org> | 1997-04-11 19:18:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-11 19:18:23 (GMT) |
commit | 6976a52099937bd3e855e7c9b8e1d3c75584b7f6 (patch) | |
tree | 22864d53bdce0301731ee8eb743e981ca2782b20 /Python | |
parent | 2d45be1366162fe3b8b6b5771b1968cc7a6d9256 (diff) | |
download | cpython-6976a52099937bd3e855e7c9b8e1d3c75584b7f6.zip cpython-6976a52099937bd3e855e7c9b8e1d3c75584b7f6.tar.gz cpython-6976a52099937bd3e855e7c9b8e1d3c75584b7f6.tar.bz2 |
(Jack:) On the Mac, use standard strerror() if using MSL C-library.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/errors.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/errors.c b/Python/errors.c index 68743bf..526b61b 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -72,6 +72,7 @@ PERFORMANCE OF THIS SOFTWARE. #endif #ifdef macintosh +#ifndef __MSL__ /* Replace strerror with a Mac specific routine. XXX PROBLEM: some positive errors have a meaning for MacOS, but some library routines set Unix error numbers... @@ -79,6 +80,7 @@ PERFORMANCE OF THIS SOFTWARE. extern char *PyMac_StrError PROTO((int)); #undef strerror #define strerror PyMac_StrError +#endif #endif /* macintosh */ #ifndef __STDC__ |