commit | 603c6831d08d8598f76e767acdd6d37227b3e9ec | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Mon Nov 05 02:45:59 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Mon Nov 05 02:45:59 2001 +0000 |
tree | 81814cbe1ce174dfa90f5ed0177a55f570202d7f | |
parent | c44403995e6fd1a55b39ca86ceb71955cbbf5e25 [diff] [blame] |
SF patch 473749 compile under OS/2 VA C++, from Michael Muller. Changes enabling Python to compile under OS/2 Visual Age C++.
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 5f5ae4c..b6e4460 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -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; }