Fix qemu_eventfd compile when !CONFIG_EVENTFD
PATCH 1/1 Fix qemu_eventfd compile when !CONFIG_EVENTFD
From: Avi Kivity <[email protected]>
Signed-off-by Avi Kivity <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
--- osdep.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
osdep.c +1 -1
@@ -293,9 +293,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;
Signature · 1 line
1.6.6
Blue Swirl
AppliedThanks, applied.
Quoted 30 lines · Paolo Bonzini
From: Avi Kivity <[email protected]>
Signed-off-by Avi Kivity <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>---
osdep.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)diff --git
a/osdep.cb/osdep.c
index 3bab79a..4d39f2c 100644
---a/osdep.c
+++b/osdep.c
@@ -293,9 +293,9 @@ssize_tqemu_write_full(int fd, const void *buf, size_t count)
*/
intqemu_eventfd(int fds[2])
{
+#ifdefCONFIG_EVENTFDint ret;-#ifdef
CONFIG_EVENTFDret = eventfd(0, 0); if (ret >= 0) { fds[0] = ret;--
1.6.6