summaryrefslogtreecommitdiffstats
path: root/packaging/macosx/ports/lang/python25/files/patch-Modules-posixmodule.c.diff
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2014-09-16 16:22:35 +0000
committer~suv <suv-sf@users.sourceforge.net>2014-09-16 16:22:35 +0000
commit67be86628796a35cdef5b5b543b5e4661f7a416c (patch)
treefcef3a8452bc72f27ffbae35d5b6d824e93c477a /packaging/macosx/ports/lang/python25/files/patch-Modules-posixmodule.c.diff
parentupdate to trunk (r13556) (diff)
downloadinkscape-67be86628796a35cdef5b5b543b5e4661f7a416c.tar.gz
inkscape-67be86628796a35cdef5b5b543b5e4661f7a416c.zip
ports: maintain current ports for python25 and py25-* modules for packaging locally (support will likely be removed in upstream MacPorts)
(bzr r13506.1.98)
Diffstat (limited to 'packaging/macosx/ports/lang/python25/files/patch-Modules-posixmodule.c.diff')
-rw-r--r--packaging/macosx/ports/lang/python25/files/patch-Modules-posixmodule.c.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/packaging/macosx/ports/lang/python25/files/patch-Modules-posixmodule.c.diff b/packaging/macosx/ports/lang/python25/files/patch-Modules-posixmodule.c.diff
new file mode 100644
index 000000000..c14913cf7
--- /dev/null
+++ b/packaging/macosx/ports/lang/python25/files/patch-Modules-posixmodule.c.diff
@@ -0,0 +1,21 @@
+--- Modules/posixmodule.c.orig Sat Dec 11 14:27:52 2004
++++ Modules/posixmodule.c Sat Dec 11 14:28:17 2004
+@@ -339,7 +339,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().
+ */
+@@ -357,7 +357,7 @@
+ d = PyDict_New();
+ if (d == NULL)
+ return NULL;
+-#ifdef WITH_NEXT_FRAMEWORK
++#ifdef __APPLE__
+ if (environ == NULL)
+ environ = *_NSGetEnviron();
+ #endif
+