We used wrong prototypes for sdl init/exit when libsdl wasn't installed when
building. This would cause build errors.
Reported-by: Kashyap Chamarthy <kashyap.cv@gmail.com>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
int sdl__init(struct kvm *kvm);
int sdl__exit(struct kvm *kvm);
#else
-static inline void sdl__init(struct kvm *kvm)
+static inline int sdl__init(struct kvm *kvm)
{
die("SDL support not compiled in. (install the SDL-dev[el] package)");
}
-static inline void sdl__exit(struct kvm *kvm)
+static inline int sdl__exit(struct kvm *kvm)
{
die("SDL support not compiled in. (install the SDL-dev[el] package)");
}