mirror of
https://github.com/qemu/qemu.git
synced 2025-08-15 05:06:56 +00:00
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:
parent
c5883be235
commit
153ceefb4a
2
osdep.c
2
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])
|
int qemu_eventfd(int fds[2])
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_EVENTFD
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
#ifdef CONFIG_EVENTFD
|
|
||||||
ret = eventfd(0, 0);
|
ret = eventfd(0, 0);
|
||||||
if (ret >= 0) {
|
if (ret >= 0) {
|
||||||
fds[0] = ret;
|
fds[0] = ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user