On 22.02.2013, at 12:47, Paolo Bonzini wrote: > Il 22/02/2013 11:07, Laurent Desnogues ha scritto: >>> The g_poll(3) interface is a portable version of the poll(2) system call. >>> The >>>> difference to select(2) is that fine-grained events (G_IO_IN, G_IO_OUT, >>>> G_IO_HUP, G_IO_ERR, G_IO_PRI) can be monitored instead of just >>>> read/write/exception. Also, there is no limit to the file descriptor >>>> numbers >>>> that may be used, allowing applications to scale to many file descriptors. >>>> See >>>> the documentation for details: >>>> >>>> http://developer.gnome.org/glib/2.28/glib-The-Main-Event-Loop.html#g-poll >> g_poll isn't available in older glib versions used by CentOS (2.12 >> on CentOS 5.6). > > Hmm, right. But we can just use poll. We require a newer glib that has > g_poll on Windows, but we know that on POSIX systems g_poll is really poll.
This is what I get on my openSUSE 11.1 system: ../aio-posix.o: In function `aio_poll': /home/agraf/release/qemu/aio-posix.c:235: undefined reference to `g_poll' ../main-loop.o: In function `os_host_main_loop_wait': /home/agraf/release/qemu/main-loop.c:196: undefined reference to `g_poll' /home/agraf/release/qemu/main-loop.c:196: undefined reference to `g_poll' Alex
