diff options
author | Alex Bligh | 2013-08-21 17:02:43 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2013-08-22 19:10:26 +0200 |
commit | 4e0c6529fcb5ccbed5eb2c4f094264eb447d49ea (patch) | |
tree | 0f89fb6942e9397892767290734b00ec00cfe9e8 /configure | |
parent | aio / timers: Consistent treatment of disabled clocks for deadlines (diff) | |
download | qemu-4e0c6529fcb5ccbed5eb2c4f094264eb447d49ea.tar.gz qemu-4e0c6529fcb5ccbed5eb2c4f094264eb447d49ea.tar.xz qemu-4e0c6529fcb5ccbed5eb2c4f094264eb447d49ea.zip |
aio / timers: add ppoll support with qemu_poll_ns
Add qemu_poll_ns which works like g_poll but takes a nanosecond
timeout.
Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -2818,6 +2818,22 @@ if compile_prog "" "" ; then dup3=yes fi +# check for ppoll support +ppoll=no +cat > $TMPC << EOF +#include <poll.h> + +int main(void) +{ + struct pollfd pfd = { .fd = 0, .events = 0, .revents = 0 }; + ppoll(&pfd, 1, 0, 0); + return 0; +} +EOF +if compile_prog "" "" ; then + ppoll=yes +fi + # check for epoll support epoll=no cat > $TMPC << EOF @@ -3814,6 +3830,9 @@ fi if test "$dup3" = "yes" ; then echo "CONFIG_DUP3=y" >> $config_host_mak fi +if test "$ppoll" = "yes" ; then + echo "CONFIG_PPOLL=y" >> $config_host_mak +fi if test "$epoll" = "yes" ; then echo "CONFIG_EPOLL=y" >> $config_host_mak fi |