diff options
author | joerg <joerg@pkgsrc.org> | 2007-07-17 21:08:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-07-17 21:08:52 +0000 |
commit | b626b37fa4dd37359ed039f8d078a9e07ca8b755 (patch) | |
tree | 9fad1ec38e10f805b681be79ca8d2600f320bed4 /lang/python24 | |
parent | b84c7f4d71318588560b67200eead8c58b1ce5bb (diff) | |
download | pkgsrc-b626b37fa4dd37359ed039f8d078a9e07ca8b755.tar.gz |
NetBSD has a 4-argument mremap, so adjust for that.
Diffstat (limited to 'lang/python24')
-rw-r--r-- | lang/python24/distinfo | 3 | ||||
-rw-r--r-- | lang/python24/patches/patch-at | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/lang/python24/distinfo b/lang/python24/distinfo index a2eb0864d16..6ee156b9b1c 100644 --- a/lang/python24/distinfo +++ b/lang/python24/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.24 2007/06/08 14:16:15 wiz Exp $ +$NetBSD: distinfo,v 1.25 2007/07/17 21:08:52 joerg Exp $ SHA1 (Python-2.4.4.tar.bz2) = 9e0971f93df8acbd947378d0d16a32fcc8897ba2 RMD160 (Python-2.4.4.tar.bz2) = 4c7b5b70178fe69881b62201ef0bab55037d8708 @@ -21,3 +21,4 @@ SHA1 (patch-ao) = 1ef48142acd8b591b11013b46048d9145f235843 SHA1 (patch-ap) = 467f4493291e1a07fd65b092863dc1a8e3832f80 SHA1 (patch-aq) = 10f1964892763e0d1b2345bd053d7929dd4b317e SHA1 (patch-ar) = f132998e3e81f3093f9bddf32fe6dcb40fcfa76f +SHA1 (patch-at) = 9d66115cc561c99dcc3478678aa286c1c0c3df6b diff --git a/lang/python24/patches/patch-at b/lang/python24/patches/patch-at new file mode 100644 index 00000000000..4a459014a1d --- /dev/null +++ b/lang/python24/patches/patch-at @@ -0,0 +1,18 @@ +$NetBSD: patch-at,v 1.1 2007/07/17 21:08:53 joerg Exp $ + +--- Modules/mmapmodule.c.orig 2007-07-15 00:02:23.000000000 +0200 ++++ Modules/mmapmodule.c +@@ -434,10 +434,12 @@ mmap_resize_method(mmap_object *self, + + #ifdef MREMAP_MAYMOVE + newmap = mremap(self->data, self->size, new_size, MREMAP_MAYMOVE); ++#elif defined(__NetBSD__) ++ newmap = mremap(self->data, self->size, self->data, new_size, 0); + #else + newmap = mremap(self->data, self->size, new_size, 0); + #endif +- if (newmap == (void *)-1) ++ if (newmap == MAP_FAILED) + { + PyErr_SetFromErrno(mmap_module_error); + return NULL; |