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>
This commit is contained in:
Avi Kivity 2010-02-23 10:16:53 +01:00 committed by Blue Swirl
parent c5883be235
commit 153ceefb4a

View File

@ -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;