summaryrefslogtreecommitdiffstats
path: root/RISCOS/Python/dynload_riscos.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-24 20:13:15 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-24 20:13:15 (GMT)
commite877f8ba3306be0c76476c1f841d6f5388b675b7 (patch)
tree58535b7aab583873d072c7f76849ccbc7141f852 /RISCOS/Python/dynload_riscos.c
parent622cc03f0b5ba8e8e51aaa73c137350fe81564a8 (diff)
downloadcpython-e877f8ba3306be0c76476c1f841d6f5388b675b7.zip
cpython-e877f8ba3306be0c76476c1f841d6f5388b675b7.tar.gz
cpython-e877f8ba3306be0c76476c1f841d6f5388b675b7.tar.bz2
SF patch #474590 -- RISC OS support
Diffstat (limited to 'RISCOS/Python/dynload_riscos.c')
-rw-r--r--RISCOS/Python/dynload_riscos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/RISCOS/Python/dynload_riscos.c b/RISCOS/Python/dynload_riscos.c
index 3c4b1d7..6965647 100644
--- a/RISCOS/Python/dynload_riscos.c
+++ b/RISCOS/Python/dynload_riscos.c
@@ -52,12 +52,13 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
{
int err;
char errstr[256];
+ void (*init_function)(void);
- err = dlk_load(pathname);
+ err = dlk_load_no_init(pathname, &init_function);
if (err)
{
sprintf(errstr, "dlk failure %d", err);
PyErr_SetString(PyExc_ImportError, errstr);
}
- return dynload_init_dummy;
+ return init_function;
}