mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
ui/console: Restrict udmabuf_fd() to Linux
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210823100454.615816-3-philmd@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
cdb1fba084
commit
b956577af1
3 changed files with 6 additions and 13 deletions
11
ui/udmabuf.c
11
ui/udmabuf.c
|
@ -8,8 +8,6 @@
|
|||
#include "qapi/error.h"
|
||||
#include "ui/console.h"
|
||||
|
||||
#ifdef CONFIG_LINUX
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
|
@ -29,12 +27,3 @@ int udmabuf_fd(void)
|
|||
}
|
||||
return udmabuf;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int udmabuf_fd(void)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue