summaryrefslogtreecommitdiff
path: root/lang/python23
diff options
context:
space:
mode:
authorrillig <rillig>2007-10-10 11:15:13 +0000
committerrillig <rillig>2007-10-10 11:15:13 +0000
commitf7d4d57ae46304c95f37afb02f74c70d4f59a33f (patch)
tree8865cbbb8269a85373ca24615211df6b849ff242 /lang/python23
parentdb3826cd5ba3d3018e991f9e5143f9cb7510d779 (diff)
downloadpkgsrc-f7d4d57ae46304c95f37afb02f74c70d4f59a33f.tar.gz
Fixed mremap on NetBSD.
Diffstat (limited to 'lang/python23')
-rw-r--r--lang/python23/distinfo3
-rw-r--r--lang/python23/patches/patch-na15
2 files changed, 17 insertions, 1 deletions
diff --git a/lang/python23/distinfo b/lang/python23/distinfo
index a6abf611e8e..e079c49ab18 100644
--- a/lang/python23/distinfo
+++ b/lang/python23/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.38 2006/10/07 07:57:58 rillig Exp $
+$NetBSD: distinfo,v 1.39 2007/10/10 11:15:13 rillig Exp $
SHA1 (Python-2.3.5.tgz) = 2729d068f5d1abe7b743f32012d4f7c4b0508a3c
RMD160 (Python-2.3.5.tgz) = 2104a393ca7c91b72b990ced53a0da752ccf42ef
@@ -24,3 +24,4 @@ SHA1 (patch-ea) = babfed4a0e5ae599441423a06622d4820ab237b1
SHA1 (patch-eb) = b72694d414b55d11e324cc76d6ed03b7c8e7630c
SHA1 (patch-ec) = 9bec8cc75868ca785810b92ffe60406117bdc3fd
SHA1 (patch-ed) = 4e032197f21b16c99331b6d744c4d1d72e650d4d
+SHA1 (patch-na) = 0019127a9b5b5b3f9f0fe3ae8d6b03672dea51e0
diff --git a/lang/python23/patches/patch-na b/lang/python23/patches/patch-na
new file mode 100644
index 00000000000..6768b3f73e9
--- /dev/null
+++ b/lang/python23/patches/patch-na
@@ -0,0 +1,15 @@
+$NetBSD: patch-na,v 1.1 2007/10/10 11:15:13 rillig Exp $
+
+--- Modules/mmapmodule.c.orig 2004-06-01 13:00:16.000000000 +0000
++++ Modules/mmapmodule.c 2007-10-10 11:07:50.000000000 +0000
+@@ -428,6 +428,10 @@ mmap_resize_method(mmap_object *self,
+ } else {
+ void *newmap;
+
++#if defined(__NetBSD__)
++# define mremap(a, b, c, d) (mremap)((a), (b), NULL, (c), (d))
++#endif
++
+ #ifdef MREMAP_MAYMOVE
+ newmap = mremap(self->data, self->size, new_size, MREMAP_MAYMOVE);
+ #else