[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3] glib: add compatibility interface for g_get_
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v3] glib: add compatibility interface for g_get_monotonic_time() |
Date: |
Wed, 15 Oct 2014 14:38:33 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Oct 15, 2014 at 02:29:30PM +0200, Igor Mammedov wrote:
> From: Stefan Hajnoczi <address@hidden>
>
> This patch fixes compilation errors when building against glib <2.28.0
> due to the missing g_get_monotonic_time() function.
>
> The compilation error in tests/libqos/virtio.c was introduced in commit
> 70556264a89a268efba1d7e8e341adcdd7881eb4 ("libqos: use microseconds
> instead of iterations for virtio timeout").
>
> Add a simple g_get_monotonic_time() implementation to glib-compat.h
> based on code from vhost-user-test.c.
>
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> Signed-off-by: Igor Mammedov <address@hidden>
> ---
> v3: include glib-compat.h into libqtest.h to fix another build breakage
> (Peter)
> v2: fix build break beacuse of missing G_TIME_SPAN_SECOND in header
> ---
> include/glib-compat.h | 19 +++++++++++++++++++
> tests/libqtest.h | 1 +
> tests/vhost-user-test.c | 23 +----------------------
> 3 files changed, 21 insertions(+), 22 deletions(-)
Thanks Igor and Peter. I didn't have a machine with old glib for
testing :(.
Stefan
pgpkLGENBBasv.pgp
Description: PGP signature