openbsd-ports/lang/python/patches/patch-dynload_shlib_c
jasoni a822bae6e7 - Remove Python 2.0 from python2, this was a mistake.
- Move Python 2.0 to python.
- Remove Python 1.6
2000-12-13 05:26:45 +00:00

16 lines
470 B
Plaintext

--- Python/dynload_shlib.c.orig Mon Nov 6 00:50:29 2000
+++ Python/dynload_shlib.c Mon Nov 6 00:51:25 2000
@@ -55,8 +55,10 @@ dl_funcptr _PyImport_GetDynLoadFunc(cons
}
/* ### should there be a leading underscore for some platforms? */
- sprintf(funcname, "init%.200s", shortname);
-
+ /* sprintf(funcname, "init%.200s", shortname); */
+ /* Like on OpenBSD */
+ sprintf(funcname, "_init%.200s", shortname);
+
if (fp != NULL) {
int i;
struct stat statb;