aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-02-23 10:16:53 +0100
committerBlue Swirl <blauwirbel@gmail.com>2010-02-23 17:22:04 +0000
commit153ceefb4a3dfc234df30bf1770c2c085d39eb2f (patch)
treed32a34a5f130ee9874f032bd03ee7a13b7b2be26
parentc5883be23519921254c6940873ee8db04979c20a (diff)
Fix qemu_eventfd compile when !CONFIG_EVENTFD
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--osdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep.c b/osdep.c
index 9e4b17bd48..5bf3c00fd1 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;