projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5883be
)
Fix qemu_eventfd compile when !CONFIG_EVENTFD
author
Avi Kivity
<avi@redhat.com>
Tue, 23 Feb 2010 09:16:53 +0000
(10:16 +0100)
committer
Blue Swirl
<blauwirbel@gmail.com>
Tue, 23 Feb 2010 17:22:04 +0000
(17:22 +0000)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
osdep.c
patch
|
blob
|
history
diff --git
a/osdep.c
b/osdep.c
index 9e4b17bd480f8a96dcd72ae612458aff71bff43a..5bf3c00fd115cd683f665bb1af670c59fab7b8b6 100644
(file)
--- 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;