From: Sasha Levin Subject: [PATCH] kvm tools: fix SDL build error when libsdl isn't installed Date: Mon, 17 Sep 2012 12:33:39 +0200 Message-ID: <1347878019-32683-1-git-send-email-levinsasha928@gmail.com> Cc: asias.hejun@gmail.com, mingo@elte.hu, gorcunov@openvz.org, kvm@vger.kernel.org, kashyap.cv@gmail.com, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-wi0-f178.google.com ([209.85.212.178]:45017 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752313Ab2IQKdf (ORCPT ); Mon, 17 Sep 2012 06:33:35 -0400 Received: by wibhr14 with SMTP id hr14so2311659wib.1 for ; Mon, 17 Sep 2012 03:33:34 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: 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 --- tools/kvm/include/kvm/sdl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kvm/include/kvm/sdl.h b/tools/kvm/include/kvm/sdl.h index b444333..19e1d74 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)"); } -- 1.7.12