From: Sasha Levin Date: Mon, 17 Sep 2012 10:33:39 +0000 (+0200) Subject: kvm tools: fix SDL build error when libsdl isn't installed X-Git-Tag: next-20120919~6^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2840c0281d698ca17d4afb9b612da2582fcacc86;p=karo-tx-linux.git kvm tools: fix SDL build error when libsdl isn't installed We used wrong prototypes for sdl init/exit when libsdl wasn't installed when building. This would cause build errors. Reported-by: Kashyap Chamarthy Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/include/kvm/sdl.h b/tools/kvm/include/kvm/sdl.h index b44433375689..19e1d743932c 100644 --- a/tools/kvm/include/kvm/sdl.h +++ b/tools/kvm/include/kvm/sdl.h @@ -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)"); }