pkgsrc/lang/python23/patches/patch-dc
recht 97217b7045 Add patches from darwinports/fink to make the posixmodule work on Darwin/
OSX and build the libpython as dynamic library.
While at it also fix the PLIST for Darwin/OSX.
2004-11-28 13:33:19 +00:00

20 lines
570 B
Text

--- Modules/posixmodule.c.orig Thu Nov 25 12:56:28 2004
+++ Modules/posixmodule.c Thu Nov 25 12:57:24 2004
@@ -304,7 +304,7 @@
#endif
/* Return a dictionary corresponding to the POSIX environment table */
-#ifdef WITH_NEXT_FRAMEWORK
+#ifdef __APPLE__
/* On Darwin/MacOSX a shared library or framework has no access to
** environ directly, we must obtain it with _NSGetEnviron().
*/
@@ -322,7 +322,7 @@
d = PyDict_New();
if (d == NULL)
return NULL;
-#ifdef WITH_NEXT_FRAMEWORK
+#ifdef __APPLE__
if (environ == NULL)
environ = *_NSGetEnviron();
#endif