summaryrefslogtreecommitdiff
path: root/audio/libgpod/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libgpod/patches/patch-ab')
-rw-r--r--audio/libgpod/patches/patch-ab19
1 files changed, 19 insertions, 0 deletions
diff --git a/audio/libgpod/patches/patch-ab b/audio/libgpod/patches/patch-ab
new file mode 100644
index 00000000000..88e03219a93
--- /dev/null
+++ b/audio/libgpod/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.3 2007/07/23 23:58:35 wiz Exp $
+
+--- src/db-artwork-writer.c.orig 2006-11-11 11:40:45.000000000 +0000
++++ src/db-artwork-writer.c
+@@ -118,9 +118,13 @@ ipod_buffer_grow_mapping (iPodBuffer *bu
+ {
+ void *new_address;
+ #ifdef HAVE_MREMAP
+-
++#if defined(__NetBSD__)
++ new_address = mremap (buffer->mmap->mmap_area, buffer->mmap->size,
++ buffer->mmap->mmap_area, buffer->mmap->size + size, 0);
++#else
+ new_address = mremap (buffer->mmap->mmap_area, buffer->mmap->size,
+ buffer->mmap->size + size, 0);
++#endif
+ #else
+ munmap (buffer->mmap->mmap_area, buffer->mmap->size);
+ new_address = mmap (buffer->mmap->mmap_area, buffer->mmap->size + size,