commit 0a3750d1b19183c6684ed998247b2a28fe1e6c5f
Author: Javier Kohen <jko...@users.sourceforge.net>
Date:   Sun Oct 7 08:42:42 2012 +0200

    Add backward compatible definition for g_mapped_file_unref.

 configure.ac           |    5 +++--
 src/db-parse-context.c |    4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 04949cc..8c1ecd9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,8 +45,8 @@ dnl by libgpod sqlite code
 PKG_CHECK_MODULES(LIBGPOD, glib-2.0 >= 2.16.0 gobject-2.0 sqlite3 libplist >= 
1.0 gmodule-2.0)
 
 dnl ***************************************************
-dnl g_gint64_hash and g_gint64_equal are only available
-dnl starting from glib 2.22.
+dnl The following functions are only available starting
+dnl from glib 2.22.
 dnl ***************************************************
 saved_CFLAGS="$CFLAGS"
 saved_LIBS="$LIBS"
@@ -54,6 +54,7 @@ CFLAGS="$LIBGPOD_CFLAGS $CFLAGS"
 LIBS="$LIBGPOD_LIBS $LIBS"
 AC_CHECK_FUNCS([g_int64_hash g_int64_equal])
 AC_CHECK_FUNCS([g_checksum_reset])
+AC_CHECK_FUNCS([g_mapped_file_unref])
 CFLAGS="$saved_CFLAGS"
 LIBS="$saved_LIBS"
 
diff --git a/src/db-parse-context.c b/src/db-parse-context.c
index 789b3e9..89b9e33 100644
--- a/src/db-parse-context.c
+++ b/src/db-parse-context.c
@@ -40,6 +40,10 @@
 #include "db-itunes-parser.h"
 #include "itdb_endianness.h"
 
+#ifndef HAVE_G_MAPPED_FILE_UNREF
+#define g_mapped_file_unref(f) g_mapped_file_free(f)
+#endif
+
 DBParseContext *
 db_parse_context_new (const unsigned char *buffer, off_t len, guint byte_order)
 {

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to