aboutsummaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-11-05 02:45:59 +0000
committerTim Peters <tim.peters@gmail.com>2001-11-05 02:45:59 +0000
commit603c6831d08d8598f76e767acdd6d37227b3e9ec (patch)
tree81814cbe1ce174dfa90f5ed0177a55f570202d7f /Python
parentRemove email*.tex subsections; they're all \input by email.tex (diff)
downloadcpython-603c6831d08d8598f76e767acdd6d37227b3e9ec.tar.gz
cpython-603c6831d08d8598f76e767acdd6d37227b3e9ec.tar.bz2
cpython-603c6831d08d8598f76e767acdd6d37227b3e9ec.zip
SF patch 473749 compile under OS/2 VA C++, from Michael Muller.
Changes enabling Python to compile under OS/2 Visual Age C++.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c4
-rw-r--r--Python/importdl.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 5f5ae4ca427..b6e44608133 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;
}
diff --git a/Python/importdl.h b/Python/importdl.h
index 4193620bd28..76fd05d2933 100644
--- a/Python/importdl.h
+++ b/Python/importdl.h
@@ -38,6 +38,7 @@ extern PyObject *_PyImport_LoadDynamicModule(char *name, char *pathname,
typedef FARPROC dl_funcptr;
#else
#ifdef PYOS_OS2
+#include <os2def.h>
typedef int (* APIENTRY dl_funcptr)();
#else
typedef void (*dl_funcptr)(void);