1 diff --git a/configure b/configure
2 index 5edefba..a17e8c5 100755
5 @@ -1184,10 +1184,10 @@ check_sdl()
9 - if which_wrapper sdl-config > /dev/null; then
10 - FLGSDL=`sdl-config --cflags`
11 + if which_wrapper sdl2-config > /dev/null; then
12 + FLGSDL=`sdl2-config --cflags`
13 INCSDL=`strip_I "$FLGSDL"`
14 - LIBSDL=`sdl-config --libs`
15 + LIBSDL=`sdl2-config --libs`
16 LIBSDLMAIN="-lSDLmain"
19 diff --git a/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp b/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
20 index 16dc282..4889865 100644
21 --- a/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
22 +++ b/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
23 @@ -56,7 +56,7 @@ using namespace com;
24 # pragma warning(push)
25 # pragma warning(disable: 4121) /* warning C4121: 'SDL_SysWMmsg' : alignment of a member was sensitive to packing*/
27 -# include <SDL_syswm.h> /* for SDL_GetWMInfo() */
28 +# include <SDL2/SDL_syswm.h> /* for SDL_GetWMInfo() */
32 diff --git a/src/VBox/Frontends/VBoxSDL/Makefile.kmk b/src/VBox/Frontends/VBoxSDL/Makefile.kmk
33 index da43153..2aa8cd7 100644
34 --- a/src/VBox/Frontends/VBoxSDL/Makefile.kmk
35 +++ b/src/VBox/Frontends/VBoxSDL/Makefile.kmk
36 @@ -79,10 +79,6 @@ if !defined(VBOX_WITH_HARDENING) || "$(KBUILD_TARGET)" != "darwin" # No hardened
40 - ifn1of ($(KBUILD_TARGET), solaris) # Probably wrong with SDL2
42 - $(LIB_SDK_LIBSDL2_SDLMAIN)
44 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
46 $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL) \
47 diff --git a/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp b/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
48 index 065c391..22788e1 100644
49 --- a/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
50 +++ b/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
51 @@ -64,7 +64,7 @@ using namespace com;
52 # pragma warning(disable: 4121) /* warning C4121: 'SDL_SysWMmsg' : alignment of a member was sensitive to packing*/
55 -# include <SDL_syswm.h> /* for SDL_GetWMInfo() */
56 +# include <SDL2/SDL_syswm.h> /* for SDL_GetWMInfo() */
60 diff --git a/src/VBox/Frontends/VBoxSDL/VBoxSDL.h b/src/VBox/Frontends/VBoxSDL/VBoxSDL.h
61 index dde548f..8fc9fb3 100644
62 --- a/src/VBox/Frontends/VBoxSDL/VBoxSDL.h
63 +++ b/src/VBox/Frontends/VBoxSDL/VBoxSDL.h
65 # pragma warning(disable: 4121) /* warning C4121: 'SDL_SysWMmsg' : alignment of a member was sensitive to packing*/
66 # pragma warning(disable: 4668) /* warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' */
69 +#include <SDL2/SDL.h>