From cd03c3a2e6a3f2b7dc4b5bcaf23f56fc0e7cd52e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 24 Oct 2001 20:13:15 +0000 Subject: SF patch #474590 -- RISC OS support --- RISCOS/Python/dynload_riscos.c | 5 +++-- RISCOS/Python/getmtime_riscos.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'RISCOS/Python') diff --git a/RISCOS/Python/dynload_riscos.c b/RISCOS/Python/dynload_riscos.c index 3c4b1d7d67..6965647062 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; } diff --git a/RISCOS/Python/getmtime_riscos.c b/RISCOS/Python/getmtime_riscos.c index cbd1669275..9153638ffe 100644 --- a/RISCOS/Python/getmtime_riscos.c +++ b/RISCOS/Python/getmtime_riscos.c @@ -1,7 +1,7 @@ #include #define __swi -#include "osfile.h" +#include "oslib/osfile.h" long PyOS_GetLastModificationTime(char *path, FILE *fp) { -- cgit v1.2.1