qtest: fix vhost-user-test compilation with old GLib
commit0a58991a5f7efd6eb8a66643f4fd894b9c6874b7
authorNikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Wed, 9 Jul 2014 15:06:32 +0000 (9 18:06 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Jul 2014 15:06:33 +0000 (10 17:06 +0200)
treef674addf044801bb5f76745c408820ab59cea342
parent13c0cbaec5698f3984606e52bfcfb63ddfc29f00
qtest: fix vhost-user-test compilation with old GLib

Mising G_TIME_SPAN_SECOND definition breaks the RHEL6 compilation as GLib
version before 2.26 does not have it. In such case just define it.

Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/vhost-user-test.c