From c5491a3d2549cf2fe325039309a8eb69cc249063 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 7 May 2012 00:10:24 +0000 Subject: Build fix for new glib2. --- net/libdmapsharing/distinfo | 3 ++- .../patches/patch-libdmapsharing_dpap-share_c | 25 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 net/libdmapsharing/patches/patch-libdmapsharing_dpap-share_c (limited to 'net/libdmapsharing') diff --git a/net/libdmapsharing/distinfo b/net/libdmapsharing/distinfo index 6da8e0fedb5..1d876239133 100644 --- a/net/libdmapsharing/distinfo +++ b/net/libdmapsharing/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2011/01/19 23:30:12 jmmv Exp $ +$NetBSD: distinfo,v 1.2 2012/05/07 00:10:24 dholland Exp $ SHA1 (libdmapsharing-2.1.9.tar.gz) = d31a41e5ce296896e68ae854d60a84d7ac463d52 RMD160 (libdmapsharing-2.1.9.tar.gz) = 089870d145355ad9f5552b10d5c9d0dda1596db9 Size (libdmapsharing-2.1.9.tar.gz) = 644796 bytes SHA1 (patch-aa) = 91697ea045dc2487ef683e4f7a268ff929d67beb +SHA1 (patch-libdmapsharing_dpap-share_c) = b5bc964465165705c064d06d1bd77a88b3eaee4e diff --git a/net/libdmapsharing/patches/patch-libdmapsharing_dpap-share_c b/net/libdmapsharing/patches/patch-libdmapsharing_dpap-share_c new file mode 100644 index 00000000000..c964a498623 --- /dev/null +++ b/net/libdmapsharing/patches/patch-libdmapsharing_dpap-share_c @@ -0,0 +1,25 @@ +$NetBSD: patch-libdmapsharing_dpap-share_c,v 1.1 2012/05/07 00:10:24 dholland Exp $ + +Fix build with latest glib2. + +--- libdmapsharing/dpap-share.c~ 2010-11-07 17:58:43.000000000 +0000 ++++ libdmapsharing/dpap-share.c +@@ -29,8 +29,7 @@ + #include + + #include +-#include +-#include ++#include + + #include + #include +@@ -451,7 +450,7 @@ add_entry_to_mlcl (gpointer id, + g_object_get (record, "location", &location, NULL); + if (mapped_file) { + /* Free any previously mapped image */ +- g_mapped_file_free (mapped_file); ++ g_mapped_file_unref (mapped_file); + mapped_file = NULL; + } + -- cgit v1.2.3