Kaydet (Commit) 3b31cd2f authored tarafından Guido van Rossum's avatar Guido van Rossum

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.
üst a59406ab
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment