aboutsummaryrefslogtreecommitdiff
path: root/osdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep.c')
-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;