summaryrefslogtreecommitdiff
path: root/lang/python22
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python22')
-rw-r--r--lang/python22/distinfo3
-rw-r--r--lang/python22/patches/patch-na15
2 files changed, 17 insertions, 1 deletions
diff --git a/lang/python22/distinfo b/lang/python22/distinfo
index 95cce391c27..1c0fe06c4f9 100644
--- a/lang/python22/distinfo
+++ b/lang/python22/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2006/04/13 02:26:54 joerg Exp $
+$NetBSD: distinfo,v 1.21 2007/10/10 11:24:10 rillig Exp $
SHA1 (Python-2.2.3.tgz) = 177d587e77e0eaa14131ab0d0d0b470777de4400
RMD160 (Python-2.2.3.tgz) = 3590f813582d65194b467f4ab450e360e35eb40e
@@ -19,3 +19,4 @@ SHA1 (patch-bc) = 376e5560f9f951d22ac371a8a5ab16c48d72404b
SHA1 (patch-ea) = babfed4a0e5ae599441423a06622d4820ab237b1
SHA1 (patch-eb) = b72694d414b55d11e324cc76d6ed03b7c8e7630c
SHA1 (patch-ec) = 3744382c5c58814129548f0529e3a5605c7ee0c8
+SHA1 (patch-na) = 33364795e278437b952c4ab96254e61823715e37
diff --git a/lang/python22/patches/patch-na b/lang/python22/patches/patch-na
new file mode 100644
index 00000000000..8aee908268a
--- /dev/null
+++ b/lang/python22/patches/patch-na
@@ -0,0 +1,15 @@
+$NetBSD: patch-na,v 1.1 2007/10/10 11:24:11 rillig Exp $
+
+--- Modules/mmapmodule.c.orig 2003-02-07 20:46:44.000000000 +0100
++++ Modules/mmapmodule.c 2007-10-10 13:19:54.000000000 +0200
+@@ -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