summaryrefslogtreecommitdiff
path: root/lang/python24-pth/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python24-pth/patches/patch-ak')
-rw-r--r--lang/python24-pth/patches/patch-ak22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/python24-pth/patches/patch-ak b/lang/python24-pth/patches/patch-ak
new file mode 100644
index 00000000000..082add7a4de
--- /dev/null
+++ b/lang/python24-pth/patches/patch-ak
@@ -0,0 +1,22 @@
+$NetBSD: patch-ak,v 1.1.1.1 2004/12/05 23:28:56 recht Exp $
+
+--- Modules/posixmodule.c.orig Wed Oct 13 17:30:56 2004
++++ Modules/posixmodule.c
+@@ -298,7 +298,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().
+ */
+@@ -316,7 +316,7 @@ convertenviron(void)
+ d = PyDict_New();
+ if (d == NULL)
+ return NULL;
+-#ifdef WITH_NEXT_FRAMEWORK
++#ifdef __APPLE__
+ if (environ == NULL)
+ environ = *_NSGetEnviron();
+ #endif