diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2019-06-10 12:02:03 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-06-19 07:44:51 +0000 |
commit | 45720b34e2037cb82600a0e21d8f17eae170060f (patch) | |
tree | b6af9f1dbb2fd64538d7b1610489b09eb328058d | |
parent | 066f669d8d92b374f8d383e1663b157b3ba72c59 (diff) | |
download | weston-45720b34e2037cb82600a0e21d8f17eae170060f.tar.gz |
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, replace include on linux/input-event-codes.h
by linux/input.h
Fixes:
- http://autobuild.buildroot.org/results/210c2759900f15ea0030d088f6f45cd8bb199b29
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
(cherry picked from commit 137b811ecd566086f7eb42c1e49e7c0cf27fb85e)
-rw-r--r-- | compositor/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compositor/main.c b/compositor/main.c index be958083..e86f696f 100644 --- a/compositor/main.c +++ b/compositor/main.c @@ -42,7 +42,7 @@ #include <sys/socket.h> #include <libinput.h> #include <libevdev/libevdev.h> -#include <linux/input-event-codes.h> +#include <linux/input.h> #include <sys/time.h> #include <linux/limits.h> |