qemu-kvm: compatfd: trivial compile fix
PATCH 1/1 qemu-kvm: compatfd: trivial compile fix
Fix build when !CONFIG_EVENTFD
CC compatfd.ocompatfd.c: In function ‘qemu_eventfd’:
compatfd.c:137: error: ‘ret’ undeclared (first use in this function) compatfd.c:137: error: (Each undeclared identifier is reported only once compatfd.c:137: error: for each function it appears in.)
make: *** [compatfd.o] Error 1
Signed-off-by Chris Wright <[email protected]>
--- compatfd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
compatfd.c +1 -1
@@ -118,9 +118,9 @@ int qemu_signalfd(const sigset_t *mask)int qemu_eventfd (int *fds) { -#if defined(CONFIG_EVENTFD )int ret; +#if defined(CONFIG_EVENTFD ) ret =syscall (SYS_eventfd,0 );if (ret >=0 ) { fds[0 ] = ret;
Avi Kivity
AppliedQuoted 10 lines · Chris Wright
Fix build when !CONFIG_EVENTFD
CC compatfd.o
compatfd.c: In function ‘qemu_eventfd’:
compatfd.c:137: error: ‘ret’ undeclared (first use in this function) compatfd.c:137: error: (Each undeclared identifier is reported only once compatfd.c:137: error: for each function it appears in.)
make: *** [compatfd.o] Error 1
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function