From e00d70dabe780eafc9037c097eb2d09bee6e7948 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 4 Aug 2015 14:44:37 +0100 Subject: [PATCH] trivial: Fix compile with AppStreamGlib git master --- src/fu-main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fu-main.c b/src/fu-main.c index 491347593..64e59844a 100644 --- a/src/fu-main.c +++ b/src/fu-main.c @@ -669,7 +669,10 @@ fu_main_daemon_update_metadata (FuMainPrivate *priv, gint fd, gint fd_sig, GErro /* merge in the new contents */ g_debug ("Store was %i size", as_store_get_size (store)); if (!as_store_from_xml (store, - g_bytes_get_data (bytes, NULL), -1, + g_bytes_get_data (bytes, NULL), +#if !AS_CHECK_VERSION(0,5,0) + -1, +#endif NULL, error)) return FALSE; g_debug ("Store now %i size", as_store_get_size (store));