summaryrefslogtreecommitdiffstats
path: root/Modules/mmapmodule.c
diff options
context:
space:
mode:
authorJesse Noller <jnoller@gmail.com>2009-03-31 18:12:35 (GMT)
committerJesse Noller <jnoller@gmail.com>2009-03-31 18:12:35 (GMT)
commit40a6164afa79f6b97e7e40e0f35f6081fde437c2 (patch)
tree3451eabd1be9e42982a3d13ef770bd924e6377b1 /Modules/mmapmodule.c
parent3476d1279f469125c62bcea8a84ab65c1e271152 (diff)
downloadcpython-40a6164afa79f6b97e7e40e0f35f6081fde437c2.zip
cpython-40a6164afa79f6b97e7e40e0f35f6081fde437c2.tar.gz
cpython-40a6164afa79f6b97e7e40e0f35f6081fde437c2.tar.bz2
Apply patch for netbsd multiprocessing support
Diffstat (limited to 'Modules/mmapmodule.c')
-rw-r--r--Modules/mmapmodule.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index d191c1e..bd7f7cc 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -509,7 +509,11 @@ mmap_resize_method(mmap_object *self,
#ifdef MREMAP_MAYMOVE
newmap = mremap(self->data, self->size, new_size, MREMAP_MAYMOVE);
#else
- newmap = mremap(self->data, self->size, new_size, 0);
+ #if defined(__NetBSD__)
+ newmap = mremap(self->data, self->size, self->data, new_size, 0);
+ #else
+ newmap = mremap(self->data, self->size, new_size, 0);
+ #endif /* __NetBSD__ */
#endif
if (newmap == (void *)-1)
{