From 153ceefb4a3dfc234df30bf1770c2c085d39eb2f Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Tue, 23 Feb 2010 10:16:53 +0100 Subject: Fix qemu_eventfd compile when !CONFIG_EVENTFD Signed-off-by: Avi Kivity Signed-off-by: Paolo Bonzini Signed-off-by: Blue Swirl --- osdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osdep.c b/osdep.c index 9e4b17b..5bf3c00 100644 --- a/osdep.c +++ b/osdep.c @@ -289,9 +289,9 @@ ssize_t qemu_write_full(int fd, const void *buf, size_t count) */ int qemu_eventfd(int fds[2]) { +#ifdef CONFIG_EVENTFD int ret; -#ifdef CONFIG_EVENTFD ret = eventfd(0, 0); if (ret >= 0) { fds[0] = ret; -- cgit v1.1