qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH buildfix for-2.0] linux-user: Fix build if heade


From: Laurent Desnogues
Subject: Re: [Qemu-devel] [PATCH buildfix for-2.0] linux-user: Fix build if headers don't define _LINUX_CAPABILITY_VERSION_1
Date: Wed, 19 Mar 2014 17:33:01 +0100

On Wed, Mar 19, 2014 at 5:15 PM, Peter Maydell <address@hidden> wrote:
> Older kernel headers don't define _LINUX_CAPABILITY_VERSION_1.
> Switch to using the older _LINUX_CAPABILITY_VERSION; newer headers
> still define this for source compatibility.
>
> Signed-off-by: Peter Maydell <address@hidden>
> Reported-by: Laurent Desnogues <address@hidden>

I'm not sure I should send "Reviewed-by" for issues I reported,
but here it is.

Reviewed-by: Laurent Desnogues <address@hidden>

Thanks,

Laurent

> ---
>  linux-user/syscall.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 366b695..2eac6d5 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -7698,7 +7698,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long 
> arg1,
>          header.version = tswap32(target_header->version);
>          header.pid = tswap32(target_header->pid);
>
> -        if (header.version != _LINUX_CAPABILITY_VERSION_1) {
> +        if (header.version != _LINUX_CAPABILITY_VERSION) {
>              /* Version 2 and up takes pointer to two user_data structs */
>              data_items = 2;
>          }
> --
> 1.9.0
>



reply via email to

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