mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
glib: use portable g_setenv()
We have a setenv() wrapper in os-win32.c that no one is actually using. Drop it and change to g_setenv() uniformly. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1576074210-52834-7-git-send-email-pbonzini@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
e858e04dd4
commit
e468ffdc6d
8 changed files with 6 additions and 30 deletions
|
|
@ -772,7 +772,7 @@ static void sdl2_display_init(DisplayState *ds, DisplayOptions *o)
|
|||
* This is a bit hackish but saves us from bigger problem.
|
||||
* Maybe it's a good idea to fix this in SDL instead.
|
||||
*/
|
||||
setenv("SDL_VIDEODRIVER", "x11", 0);
|
||||
g_setenv("SDL_VIDEODRIVER", "x11", 0);
|
||||
#endif
|
||||
|
||||
if (SDL_Init(SDL_INIT_VIDEO)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue