Files
python-build/pythonbrew/patches/macosx/python27/patch-Modules-posixmodule.diff
T

21 lines
613 B
Diff

--- Modules/posixmodule.c.orig 2011-05-28 16:57:40.000000000 -0400
+++ Modules/posixmodule.c 2011-05-28 16:56:40.000000000 -0400
@@ -455,7 +455,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().
*/
@@ -477,7 +477,7 @@
d = PyDict_New();
if (d == NULL)
return NULL;
-#ifdef WITH_NEXT_FRAMEWORK
+#ifdef __APPLE__
if (environ == NULL)
environ = *_NSGetEnviron();
#endif