]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: fix SDL build error when libsdl isn't installed
authorSasha Levin <levinsasha928@gmail.com>
Mon, 17 Sep 2012 10:33:39 +0000 (12:33 +0200)
committerPekka Enberg <penberg@kernel.org>
Tue, 18 Sep 2012 07:56:31 +0000 (10:56 +0300)
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>
tools/kvm/include/kvm/sdl.h

index b4443337568936a098c9179243920ca4b05a2ee5..19e1d743932c8cfab403809bac403d1a76a1a6cb 100644 (file)
@@ -9,11 +9,11 @@ struct framebuffer;
 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)");
 }