diff mbox series

ui/dbus: fix win32 compilation when !opengl

Message ID 20230725112540.53284-1-marcandre.lureau@redhat.com
State New
Headers show
Series ui/dbus: fix win32 compilation when !opengl | expand

Commit Message

Marc-André Lureau July 25, 2023, 11:25 a.m. UTC
From: Marc-Andre Lureau <marcandre.lureau@redhat.com>

Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1782

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 ui/dbus-listener.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Philippe Mathieu-Daudé July 25, 2023, 12:52 p.m. UTC | #1
On 25/7/23 13:25, marcandre.lureau@redhat.com wrote:
> From: Marc-Andre Lureau <marcandre.lureau@redhat.com>
> 
> Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1782
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>   ui/dbus-listener.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Philippe Mathieu-Daudé Aug. 1, 2023, 9:47 p.m. UTC | #2
On 25/7/23 13:25, marcandre.lureau@redhat.com wrote:
> From: Marc-Andre Lureau <marcandre.lureau@redhat.com>
> 
> Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1782
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>   ui/dbus-listener.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)

Thanks, queued via misc-fixes.
diff mbox series

Patch

diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c
index 68ff343799..02fc6ae239 100644
--- a/ui/dbus-listener.c
+++ b/ui/dbus-listener.c
@@ -338,6 +338,7 @@  static bool dbus_scanout_map(DBusDisplayListener *ddl)
     return true;
 }
 
+#ifdef CONFIG_OPENGL
 static bool
 dbus_scanout_share_d3d_texture(
     DBusDisplayListener *ddl,
@@ -399,7 +400,8 @@  dbus_scanout_share_d3d_texture(
 
     return true;
 }
-#endif
+#endif /* CONFIG_OPENGL */
+#endif /* WIN32 */
 
 #ifdef CONFIG_OPENGL
 static void dbus_scanout_texture(DisplayChangeListener *dcl,