diff options
| author | Guido van Rossum <guido@python.org> | 1997-04-11 19:18:23 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1997-04-11 19:18:23 +0000 |
| commit | 18f2301f061c89c9f65ef1d4f9ad5b68c45f7731 (patch) | |
| tree | 23896dd1b82cdd8c64995f3418e61b37d1fe5760 /Python | |
| parent | 3a630dfcccd53519efaac55a45b7107b7fe0f20d (diff) | |
| download | cpython-18f2301f061c89c9f65ef1d4f9ad5b68c45f7731.tar.gz | |
(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 68743bf427..526b61bba4 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__ |
