Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 20871:f576ffd57966 legacy-trunk
SF patch 473749 compile under OS/2 VA C++, from Michael Muller.
Changes enabling Python to compile under OS/2 Visual Age C++.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Mon, 05 Nov 2001 02:45:59 +0000 |
| parents | 272336648d1f |
| children | 379fc66f4c96 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Mon Nov 05 01:55:43 2001 +0000 +++ b/Python/bltinmodule.c Mon Nov 05 02:45:59 2001 +0000 @@ -567,7 +567,11 @@ #ifndef RISCOS if (!stat(filename, &s)) { if (S_ISDIR(s.st_mode)) +#if defined(PYOS_OS2) && defined(PYCC_VACPP) + errno = EOS2ERR; +#else errno = EISDIR; +#endif else exists = 1; }
