aboutsummaryrefslogtreecommitdiff
path: root/ui/udmabuf.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2021-08-23 12:04:54 +0200
committerGerd Hoffmann <kraxel@redhat.com>2021-08-31 14:31:43 +0200
commitb956577af1b88e950bf2aa5f77be6c8aee04e879 (patch)
tree15442c98c1e10ffedf5e409586aa8990d75d8b63 /ui/udmabuf.c
parentcdb1fba0844bb1db71f67d35700a80838d185bbd (diff)
downloadqemu-b956577af1b88e950bf2aa5f77be6c8aee04e879.zip
qemu-b956577af1b88e950bf2aa5f77be6c8aee04e879.tar.gz
qemu-b956577af1b88e950bf2aa5f77be6c8aee04e879.tar.bz2
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>
Diffstat (limited to 'ui/udmabuf.c')
-rw-r--r--ui/udmabuf.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/ui/udmabuf.c b/ui/udmabuf.c
index 23abe1e..cebceb2 100644
--- a/ui/udmabuf.c
+++ b/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