summaryrefslogtreecommitdiffstats
path: root/RISCOS/Python
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
parent622cc03f0b5ba8e8e51aaa73c137350fe81564a8 (diff)
downloadcpython-e877f8ba3306be0c76476c1f841d6f5388b675b7.zip
cpython-e877f8ba3306be0c76476c1f841d6f5388b675b7.tar.gz
cpython-e877f8ba3306be0c76476c1f841d6f5388b675b7.tar.bz2
SF patch #474590 -- RISC OS support
Diffstat (limited to 'RISCOS/Python')
-rw-r--r--RISCOS/Python/dynload_riscos.c5
-rw-r--r--RISCOS/Python/getmtime_riscos.c2
2 files changed, 4 insertions, 3 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;
}
diff --git a/RISCOS/Python/getmtime_riscos.c b/RISCOS/Python/getmtime_riscos.c
index cbd1669..9153638 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)
{