]> granicus.if.org Git - strace/commit
evdev: fix build with old kernel headers
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 21 Feb 2015 23:50:33 +0000 (02:50 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 22 Feb 2015 02:29:55 +0000 (02:29 +0000)
commit19dadf94015523c6b8b7a2a0a8daff4151dafb07
tree0b1a4c85918375d5f5212e743b1c6f2f7ca86ab4
parent4f750b9ad1bb870337395355047ac2f89f340feb
evdev: fix build with old kernel headers

* configure.ac: Check whether struct input_absinfo.resolution is defined
in <linux/input.h>.
* evdev.c (SYN_MAX): Add fallback definition.
(abs_ioctl): Wrap use of struct input_absinfo.resolution in #ifdef check.
(keycode_V2_ioctl, mtslots_ioctl, repeat_ioctl): Wrap in #ifdef checks.
(evdev_read_ioctl): Wrap in #ifdef checks the code that uses EV_SW,
EVIOCGREP, EVIOCGKEYCODE_V2, EVIOCGMTSLOTS, EVIOCGPROP, and EVIOCGSW.
(evdev_write_ioctl): Wrap in #ifdef checks the code that uses EVIOCSREP,
EVIOCSKEYCODE_V2, EVIOCSCLOCKID, and EVIOCREVOKE.
configure.ac
evdev.c