Add patch to fix _environ symbol missing bug in python27, see http://bugs.python.org/issue1602133

This commit is contained in:
Nicolas Pinto
2011-05-28 17:10:45 -04:00
parent 5c5ff69474
commit 92c48adfac
4 changed files with 46 additions and 26 deletions
@@ -1,5 +1,14 @@
--- Modules/posixmodule.c.bak 2011-05-28 14:09:48.000000000 -0400
+++ Modules/posixmodule.c 2011-05-28 14:10:34.000000000 -0400
--- 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)