Fix build with kernel < 4.4
weston includes input-event-codes.h since version 5.0.91 and https://github.com/wayland-project/weston/commit/6e229ca26381bc8191fd9af1e439c311da709aff
input-event-codes.h is available only since kernel 4.4 and https://github.com/torvalds/linux/commit/f902dd893427eade90f7eaf858e5ff8b150a5a12
To fix this build failure, check for the availability of this header before including it and fallback to linux/input.h (for EV_KEY) if needed
It should be noted that we could just drop linux/input.h as it is already pulled in from libevdev/libevdev.h
Fixes:
Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com