summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAlex Bligh2013-08-21 17:02:43 +0200
committerStefan Hajnoczi2013-08-22 19:10:26 +0200
commit4e0c6529fcb5ccbed5eb2c4f094264eb447d49ea (patch)
tree0f89fb6942e9397892767290734b00ec00cfe9e8 /configure
parentaio / timers: Consistent treatment of disabled clocks for deadlines (diff)
downloadqemu-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-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 18fa60824b..56594121ad 100755
--- a/configure
+++ b/configure
@@ -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