1e8671d641
We are pleased to announce the release of Python 2.4.4 (FINAL), a bugfix release of Python 2.4, on October 18, 2006. Important: 2.4.4 includes a security fix (PSF-2006-001) for the repr() of unicode strings in wide unicode builds (UCS-4) [does not affect pkgsrc] Python 2.4 is now in bugfix-only mode; no new features are being added. At least 80 bugs have been squished since Python 2.4.3, including a number of bugs and potential bugs found by with the Coverity and Klocwork static analysis tools. We'd like to offer our thanks to both these firms for making this available for open source projects - see their websites if you're interested.
22 lines
673 B
Text
22 lines
673 B
Text
$NetBSD: patch-ak,v 1.2 2007/06/08 14:16:16 wiz Exp $
|
|
|
|
--- Modules/posixmodule.c.orig 2006-10-09 19:29:06.000000000 +0000
|
|
+++ Modules/posixmodule.c
|
|
@@ -314,7 +314,7 @@ extern int lstat(const char *, struct st
|
|
#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().
|
|
*/
|
|
@@ -332,7 +332,7 @@ convertenviron(void)
|
|
d = PyDict_New();
|
|
if (d == NULL)
|
|
return NULL;
|
|
-#ifdef WITH_NEXT_FRAMEWORK
|
|
+#ifdef __APPLE__
|
|
if (environ == NULL)
|
|
environ = *_NSGetEnviron();
|
|
#endif
|