aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/python26/python-osx-environ-fix.patch
blob: b6f6a725e0b50a99c34622026844e5fb13996630 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: Modules/posixmodule.c
===================================================================
--- a/Modules/posixmodule.c	(revision 52827)
+++ b/Modules/posixmodule.c	(working copy)
@@ -314,7 +314,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().
 */
@@ -332,7 +332,7 @@
 	d = PyDict_New();
 	if (d == NULL)
 		return NULL;
-#ifdef WITH_NEXT_FRAMEWORK
+#ifdef __APPLE__
 	if (environ == NULL)
 		environ = *_NSGetEnviron();
 #endif