pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/libgpod Fix build on NetBSD with mremap().
details: https://anonhg.NetBSD.org/pkgsrc/rev/af17c242fdb8
branches: trunk
changeset: 531183:af17c242fdb8
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Jul 23 23:58:35 2007 +0000
description:
Fix build on NetBSD with mremap().
diffstat:
audio/libgpod/distinfo | 3 ++-
audio/libgpod/patches/patch-ab | 19 +++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r cc2817ec663e -r af17c242fdb8 audio/libgpod/distinfo
--- a/audio/libgpod/distinfo Mon Jul 23 23:46:59 2007 +0000
+++ b/audio/libgpod/distinfo Mon Jul 23 23:58:35 2007 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2007/02/07 22:30:10 drochner Exp $
+$NetBSD: distinfo,v 1.4 2007/07/23 23:58:35 wiz Exp $
SHA1 (libgpod-0.4.2.tar.gz) = b2aece62a206a5b703c50e6625b173217f1d67a6
RMD160 (libgpod-0.4.2.tar.gz) = 5f69a0455412771e7bc33e9f4c1996454da9792e
Size (libgpod-0.4.2.tar.gz) = 768720 bytes
SHA1 (patch-aa) = 10c09bf41c73667a93667d13f2e2a83478e680f5
+SHA1 (patch-ab) = e405427a69ae2257bd509fa9261eb3571eeb138d
diff -r cc2817ec663e -r af17c242fdb8 audio/libgpod/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libgpod/patches/patch-ab Mon Jul 23 23:58:35 2007 +0000
@@ -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,
Home |
Main Index |
Thread Index |
Old Index