Received: from eggs.gnu.org ([208.118.235.92]:51753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGTug-0007wv-Vf for qemu-devel@nongnu.org; Fri, 15 Mar 2013 08:39:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGTuf-0000A2-Gb for qemu-devel@nongnu.org; Fri, 15 Mar 2013 08:39:10 -0400 Received: from cantor2.suse.de ([195.135.220.15]:59572 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGTuf-00009y-AG for qemu-devel@nongnu.org; Fri, 15 Mar 2013 08:39:09 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <1363323879-682-1-git-send-email-peter.crosthwaite@xilinx.com> Date: Fri, 15 Mar 2013 13:39:06 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5AFAEC83-3571-4D1F-8CE9-22CCC3B7A48B@suse.de> References: <1363323879-682-1-git-send-email-peter.crosthwaite@xilinx.com> Subject: Re: [Qemu-devel] [PATCH build-breaker] qga/main.c: Don't use g_key_file_get/set_int64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: blauwirbel@gmail.com, aliguori@us.ibm.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com On 15.03.2013, at 06:04, Peter Crosthwaite wrote: > These functions don't exist until glib version 2.26. QEMU is currently = only > mandating glib 2.12. >=20 > This patch replaces the functions with g_key_file_get/set_integer. >=20 > Unbreaks the build on Ubuntu 10.04 and RHEL 5.6. >=20 > Regression was introduced by 39097daf15c42243742667607d2cad2c9dc4f764 >=20 > Signed-off-by: Peter Crosthwaite Thanks, this fixes the build for me on openSUSE 11.1 as well. Acked-by: Alexander Graf I also applied to patch to ppc-next, as I can't build without it, but = I'd prefer if someone applies the patch directly to the tree ASAP. Alex > --- > qga/main.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/qga/main.c b/qga/main.c > index 99346e1..74ef788 100644 > --- a/qga/main.c > +++ b/qga/main.c > @@ -755,7 +755,7 @@ static void = persistent_state_from_keyfile(GAPersistentState *pstate, >=20 > if (g_key_file_has_key(keyfile, "global", "fd_counter", NULL)) { > pstate->fd_counter =3D > - g_key_file_get_int64(keyfile, "global", "fd_counter", = NULL); > + g_key_file_get_integer(keyfile, "global", "fd_counter", = NULL); > } > } >=20 > @@ -765,7 +765,7 @@ static void persistent_state_to_keyfile(const = GAPersistentState *pstate, > g_assert(pstate); > g_assert(keyfile); >=20 > - g_key_file_set_int64(keyfile, "global", "fd_counter", = pstate->fd_counter); > + g_key_file_set_integer(keyfile, "global", "fd_counter", = pstate->fd_counter); > } >=20 > static gboolean write_persistent_state(const GAPersistentState = *pstate, > --=20 > 1.7.0.4 >=20 >=20