From f7d4d57ae46304c95f37afb02f74c70d4f59a33f Mon Sep 17 00:00:00 2001 From: rillig Date: Wed, 10 Oct 2007 11:15:13 +0000 Subject: Fixed mremap on NetBSD. --- lang/python21/patches/patch-na | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lang/python21/patches/patch-na (limited to 'lang/python21/patches') diff --git a/lang/python21/patches/patch-na b/lang/python21/patches/patch-na new file mode 100644 index 00000000000..658d3812a03 --- /dev/null +++ b/lang/python21/patches/patch-na @@ -0,0 +1,15 @@ +$NetBSD: patch-na,v 1.1 2007/10/10 11:21:53 rillig Exp $ + +--- Modules/mmapmodule.c.orig 2001-07-16 17:45:20.000000000 +0200 ++++ Modules/mmapmodule.c 2007-10-10 13:18:05.000000000 +0200 +@@ -394,6 +394,10 @@ + } 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 -- cgit v1.2.3