qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] linux-user: Fix compilation when F_SETPIPE_SZ i


From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH] linux-user: Fix compilation when F_SETPIPE_SZ isn't defined
Date: Thu, 30 Jun 2016 19:51:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1


Le 30/06/2016 à 18:33, Peter Maydell a écrit :
> Older kernels don't have F_SETPIPE_SZ and F_GETPIPE_SZ (in
> particular RHEL6's system headers don't define these). Add
> ifdefs so that we can gracefully fall back to not supporting
> those guest ioctls rather than failing to build.
> 
> Signed-off-by: Peter Maydell <address@hidden>

Reviewed-by: Laurent Vivier <address@hidden>

> ---
> Reported by an anonymous IRC user...
> 
>  linux-user/syscall.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 6ad8239..165fd06 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -5598,10 +5598,12 @@ static int target_to_host_fcntl_cmd(int cmd)
>       case TARGET_F_SETOWN_EX:
>           return F_SETOWN_EX;
>  #endif
> +#ifdef F_SETPIPE_SZ
>          case TARGET_F_SETPIPE_SZ:
>              return F_SETPIPE_SZ;
>          case TARGET_F_GETPIPE_SZ:
>              return F_GETPIPE_SZ;
> +#endif
>       default:
>              return -TARGET_EINVAL;
>      }
> 



reply via email to

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