mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
SF patch #474590 -- RISC OS support
This commit is contained in:
parent
622cc03f0b
commit
e877f8ba33
12 changed files with 142 additions and 74 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#define __swi
|
||||
#include "osfile.h"
|
||||
#include "oslib/osfile.h"
|
||||
|
||||
long PyOS_GetLastModificationTime(char *path, FILE *fp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue