diff options
| author | Guido van Rossum <guido@python.org> | 2001-10-24 20:13:15 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2001-10-24 20:13:15 +0000 |
| commit | cd03c3a2e6a3f2b7dc4b5bcaf23f56fc0e7cd52e (patch) | |
| tree | b794ed75367867b432f3c5361e722b7f8631fca0 /RISCOS/Python | |
| parent | 3cc281bbacd50f12623bda455db966079afe0972 (diff) | |
| download | cpython-cd03c3a2e6a3f2b7dc4b5bcaf23f56fc0e7cd52e.tar.gz | |
SF patch #474590 -- RISC OS support
Diffstat (limited to 'RISCOS/Python')
| -rw-r--r-- | RISCOS/Python/dynload_riscos.c | 5 | ||||
| -rw-r--r-- | RISCOS/Python/getmtime_riscos.c | 2 |
2 files changed, 4 insertions, 3 deletions
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 <stdio.h> #define __swi -#include "osfile.h" +#include "oslib/osfile.h" long PyOS_GetLastModificationTime(char *path, FILE *fp) { |
