[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/42] sdl2: baum build fix
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 02/42] sdl2: baum build fix |
Date: |
Mon, 16 Dec 2013 11:48:38 +0100 |
---
backends/baum.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/backends/baum.c b/backends/baum.c
index 1132899..665107f 100644
--- a/backends/baum.c
+++ b/backends/baum.c
@@ -566,7 +566,7 @@ CharDriverState *chr_baum_init(void)
BaumDriverState *baum;
CharDriverState *chr;
brlapi_handle_t *handle;
-#ifdef CONFIG_SDL
+#if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
SDL_SysWMinfo info;
#endif
int tty;
@@ -595,7 +595,7 @@ CharDriverState *chr_baum_init(void)
goto fail;
}
-#ifdef CONFIG_SDL
+#if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
memset(&info, 0, sizeof(info));
SDL_VERSION(&info.version);
if (SDL_GetWMInfo(&info))
--
1.8.3.1
- [Qemu-devel] [PATCH 00/42] rework input handling, sdl2 support, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 02/42] sdl2: baum build fix,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 04/42] console: export QemuConsole index, width, height, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 06/42] input: qapi: define event types, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 03/42] sdl2: remove text console logic, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 12/42] input: keyboard: switch qmp_send_key() to new core., Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 18/42] input: keyboard: switch curses ui to new core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 15/42] sdl2: switch keyboard handling to new core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 05/42] input: rename file to legacy, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 14/42] input: keyboard: switch sdl ui to new core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 10/42] input: keyboard: add helper functions to core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 11/42] input: keyboard: switch legacy handlers to new core, Gerd Hoffmann, 2013/12/16