From 603c6831d08d8598f76e767acdd6d37227b3e9ec Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 5 Nov 2001 02:45:59 +0000 Subject: SF patch 473749 compile under OS/2 VA C++, from Michael Muller. Changes enabling Python to compile under OS/2 Visual Age C++. --- Python/bltinmodule.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Python/bltinmodule.c') diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 5f5ae4ca42..b6e4460813 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -567,7 +567,11 @@ builtin_execfile(PyObject *self, PyObject *args) #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; } -- cgit v1.2.1