diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-01-03 20:19:33 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2017-01-24 23:26:53 +0300 |
commit | 1706e9d819ff610154fe47ef3a195c2fd6604efe (patch) | |
tree | 23dc241d61b4f165009af85bd0494fdf0ac3c844 /util/oslib-win32.c | |
parent | 6e4c890e15b23f078650499fbde11760b8eccf10 (diff) | |
download | qemu-1706e9d819ff610154fe47ef3a195c2fd6604efe.zip qemu-1706e9d819ff610154fe47ef3a195c2fd6604efe.tar.gz qemu-1706e9d819ff610154fe47ef3a195c2fd6604efe.tar.bz2 |
win32: use glib gpoll if glib >= 2.50
A fix has been committed in upstream glib commit
210a9796f78eb90f76f1bd6a304e9fea05e97617.
(See also related bug https://bugzilla.gnome.org/show_bug.cgi?id=764415)
It is desirable to use the glib version instead of qemu copy, since it
provides more debugging facilities (G_MAIN_POLL_DEBUG etc), and
hopefully has a better maintainance. Hopefully, we can drop the qemu
copy in a few years.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'util/oslib-win32.c')
-rw-r--r-- | util/oslib-win32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/oslib-win32.c b/util/oslib-win32.c index d09863c..0b1890f 100644 --- a/util/oslib-win32.c +++ b/util/oslib-win32.c @@ -327,6 +327,7 @@ char *qemu_get_exec_dir(void) return g_strdup(exec_dir); } +#if !GLIB_CHECK_VERSION(2, 50, 0) /* * The original implementation of g_poll from glib has a problem on Windows * when using timeouts < 10 ms. @@ -530,6 +531,7 @@ gint g_poll(GPollFD *fds, guint nfds, gint timeout) return retval; } +#endif int getpagesize(void) { |