From mboxrd@z Thu Jan 1 00:00:00 1970 From: Farkas Levente Subject: Re: another kvm-70 compile bug with rhel/centos 5.2 Date: Sun, 29 Jun 2008 19:24:39 +0200 Message-ID: <4867C557.3040806@lfarkas.org> References: <4862AE06.6060206@lfarkas.org> <4867AE8A.4010600@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from nf-out-0910.google.com ([64.233.182.187]:9798 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752633AbYF2RYo (ORCPT ); Sun, 29 Jun 2008 13:24:44 -0400 Received: by nf-out-0910.google.com with SMTP id d3so337582nfc.21 for ; Sun, 29 Jun 2008 10:24:43 -0700 (PDT) In-Reply-To: <4867AE8A.4010600@qumranet.com> Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity wrote: > Farkas Levente wrote: >> hi, >> i'm just try to recompile kvm-70 with the latest centos-5.2 (aka >> rhel-5.2) kernel, but i've got a new compile error: > >> error: redefinition of typedef 'bool' > > Please try the attached patch, and let me know if it helps. > FYI: /lib/modules/2.6.18-92.1.6.el5/build/include/linux/version.h: ------------------------------- #define LINUX_VERSION_CODE 132626 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) #define RHEL_MAJOR 5 #define RHEL_MINOR 2 #define RHEL_RELEASE_CODE 1282 #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b)) ------------------------------- -- Levente "Si vis pacem para bellum!"