]> Git Repo - qemu.git/commitdiff
qtest: fix vhost-user-test compilation with old GLib
authorNikolay Nikolaev <[email protected]>
Wed, 9 Jul 2014 15:06:32 +0000 (18:06 +0300)
committerMichael S. Tsirkin <[email protected]>
Sun, 13 Jul 2014 21:42:54 +0000 (00:42 +0300)
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 <[email protected]>
Signed-off-by: Nikolay Nikolaev <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
tests/vhost-user-test.c

index 2af2381a1de7829fd84d3b8bfd4aeff3b8ff5b8c..406ba7094195679017ca2b80071b74c4cb15edd5 100644 (file)
 #include <qemu/sockets.h>
 
 /* GLIB version compatibility flags */
+#if !GLIB_CHECK_VERSION(2, 26, 0)
+#define G_TIME_SPAN_SECOND              (G_GINT64_CONSTANT(1000000))
+#endif
+
 #if GLIB_CHECK_VERSION(2, 28, 0)
 #define HAVE_MONOTONIC_TIME
 #endif
This page took 0.026852 seconds and 4 git commands to generate.