qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 01/26] qemu: add Error to typedefs


From: Igor Mammedov
Subject: Re: [Qemu-devel] [PATCH v6 01/26] qemu: add Error to typedefs
Date: Mon, 30 Sep 2013 15:10:56 +0200

On Sun, 29 Sep 2013 13:58:24 +0300
"Michael S. Tsirkin" <address@hidden> wrote:

> This is so qom headers can use it without pulling in
> extra headers.
> 
> Reviewed-by: Paolo Bonzini <address@hidden>
> Signed-off-by: Michael S. Tsirkin <address@hidden>
> ---
>  include/qemu/typedefs.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
> index a4c1b84..46c3599 100644
> --- a/include/qemu/typedefs.h
> +++ b/include/qemu/typedefs.h
> @@ -7,6 +7,7 @@ typedef struct QEMUTimer QEMUTimer;
>  typedef struct QEMUTimerListGroup QEMUTimerListGroup;
>  typedef struct QEMUFile QEMUFile;
>  typedef struct QEMUBH QEMUBH;
> +typedef struct Error Error;
>  
>  typedef struct AioContext AioContext;
>  

fc19 seems to ok with it but rhel6/gcc-4.4.7-4 isn't
./configure --enable-kvm --target-list=x86_64-softmmu,x86_64-linux-user

In file included from /qemu/include/qapi/visitor.h:18,
                 from qapi-visit.h:20,
                 from qapi-visit.c:18:
/qemu/include/qapi/error.h:23: error: redefinition of typedef ‘Error’
/qemu/include/qemu/typedefs.h:10: note: previous declaration of ‘Error’ was here




reply via email to

[Prev in Thread] Current Thread [Next in Thread]