mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Patch 102114, Bug 11725. On OpenBSD (but apparently not on the other
BSDs) you need a leading underscore in the dlsym() lookup name.
This commit is contained in:
parent
add8d86325
commit
c8fcdcba36
1 changed files with 7 additions and 2 deletions
|
|
@ -16,6 +16,12 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __OpenBSD__
|
||||||
|
#define LEAD_UNDERSCORE "_"
|
||||||
|
#else
|
||||||
|
#define LEAD_UNDERSCORE ""
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef RTLD_LAZY
|
#ifndef RTLD_LAZY
|
||||||
#define RTLD_LAZY 1
|
#define RTLD_LAZY 1
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -54,8 +60,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
|
||||||
pathname = pathbuf;
|
pathname = pathbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ### should there be a leading underscore for some platforms? */
|
sprintf(funcname, LEAD_UNDERSCORE "init%.200s", shortname);
|
||||||
sprintf(funcname, "init%.200s", shortname);
|
|
||||||
|
|
||||||
if (fp != NULL) {
|
if (fp != NULL) {
|
||||||
int i;
|
int i;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue