mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 07:02:03 -06: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
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue