diff options
Diffstat (limited to 'RISCOS/Python/dynload_riscos.c')
-rw-r--r-- | RISCOS/Python/dynload_riscos.c | 5 |
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; } |