Hi Krzysztof,

On 27 September 2016 at 22:44, Dima Ryazanov <[email protected]> wrote:
> The kernel version used to build Weston isn't necessarily the same as the
> version that will be used to run it. Weston should already work fine on
> older versions: the second ioctl will return an error - but it's ok as long
> as the first one succeeds.
>
> Also, a compile-time check would prevent Weston built on an old kernel from
> taking advantage of new features when running on a new kernel.

I agree with Dima here. I think it would be better to use the approach
we use elsewhere, which is an #ifdef/#define/#endif. This lets us
build on older kernels, without needing #ifdefs in the main codepath.
As Dima says, the ioctl will just fail anyway.

Cheers,
Daniel
_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to