Skip to contentSkip to conversation

kvm tools: fix SDL build error when libsdl isn't installed

PATCH In review Sasha Levin 2 participants 2 messages Sep 17, 2012 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tools/kvm/include/kvm/sdl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/kvm/include/kvm/sdl.h +2 -2
index b444333..19e1d74 100644
@@ -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)");
 }
Signature · 1 line
1.7.12
#1 lore raw
Quoted 28 lines · Sasha Levin

We used wrong prototypes for sdl init/exit when libsdl wasn't installed when building. This would cause build errors.

---
 tools/kvm/include/kvm/sdl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/kvm/include/kvm/sdl.h +2 -3
index b444333..19e1d74 100644
@@ -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)");
 }
--
Quoted 2 lines

1.7.12

Just for info for to the list, this does not apply.

I'm testing the newer patch sent by Sasha.

Thanks.
/kashyap