libweston: Add check and fallback for linux/sync_file.h
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Wed, 27 Sep 2017 12:09:15 +0000 (15:09 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 29 Sep 2017 07:20:42 +0000 (10:20 +0300)
commite39eb8f896f9640cf731715ccba64bad26556f4d
tree46024e9bcfec92898803a58fec43698426e05181
parent7192b17f3e266bfab501e7c3987aaa71815c6ecf
libweston: Add check and fallback for linux/sync_file.h

The sync file functionality is required by the upcoming GPU render
timeline work, but it's only available in relatively new linux kernel
versions (4.7 and above).

This commit provides a "sanitized" version of the required sync file
definitions.  On systems that don't have the sync file header (due to
having an older kernel), we will be able to fall back to our own
definitions when building.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Makefile.am
configure.ac
libweston/weston-sync-file.h [new file with mode: 0644]