mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Shared libraries didn't quite work under AIX because of the change in
status of the GNU readline interface. Here's a patch, by Vladimir Marangozov.
This commit is contained in:
parent
a59406abdf
commit
3b31cd2fe7
1 changed files with 11 additions and 0 deletions
|
@ -599,6 +599,17 @@ aix_getoldmodules(modlistptr)
|
|||
ldiptr = (struct ld_info *)ldibuf;
|
||||
prevmodptr = NULL;
|
||||
do {
|
||||
if (strstr(ldiptr->ldinfo_filename, "python") == NULL) {
|
||||
/*
|
||||
-- Extract only the modules containing "python" as a
|
||||
-- substring, like the "python[version]" executable or
|
||||
-- "libpython[version].a" in case python is embedded.
|
||||
*/
|
||||
offset = (unsigned int)ldiptr->ldinfo_next;
|
||||
ldiptr = (struct ld_info *)((unsigned int)
|
||||
ldiptr + offset);
|
||||
continue;
|
||||
}
|
||||
if ((modptr = (ModulePtr)malloc(sizeof(Module))) == NULL) {
|
||||
PyErr_SetString(PyExc_ImportError, strerror(errno));
|
||||
while (*modlistptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue