qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 89b516: glib: add compatibility interface for


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 89b516: glib: add compatibility interface for g_get_monoto...
Date: Wed, 15 Oct 2014 13:00:05 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 89b516d8b9444ece8ccabb322a9389587c7a7b83
      
https://github.com/qemu/qemu/commit/89b516d8b9444ece8ccabb322a9389587c7a7b83
  Author: Stefan Hajnoczi <address@hidden>
  Date:   2014-10-15 (Wed, 15 Oct 2014)

  Changed paths:
    M include/glib-compat.h
    M tests/libqtest.h
    M tests/vhost-user-test.c

  Log Message:
  -----------
  glib: add compatibility interface for g_get_monotonic_time()

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>
[Igor: add G_TIME_SPAN_SECOND, include glib-compat.h in libqtest.h]
Signed-off-by: Igor Mammedov <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]