Merge "Fix libinput to build with uapi headers."
This commit is contained in:
@ -1243,6 +1243,12 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {
|
|||||||
|
|
||||||
// Enable wake-lock behavior on kernels that support it.
|
// Enable wake-lock behavior on kernels that support it.
|
||||||
// TODO: Only need this for devices that can really wake the system.
|
// TODO: Only need this for devices that can really wake the system.
|
||||||
|
#ifndef EVIOCSSUSPENDBLOCK
|
||||||
|
// uapi headers don't include EVIOCSSUSPENDBLOCK, and future kernels
|
||||||
|
// will use an epoll flag instead, so as long as we want to support
|
||||||
|
// this feature, we need to be prepared to define the ioctl ourselves.
|
||||||
|
#define EVIOCSSUSPENDBLOCK _IOW('E', 0x91, int)
|
||||||
|
#endif
|
||||||
bool usingSuspendBlockIoctl = !ioctl(fd, EVIOCSSUSPENDBLOCK, 1);
|
bool usingSuspendBlockIoctl = !ioctl(fd, EVIOCSSUSPENDBLOCK, 1);
|
||||||
|
|
||||||
// Tell the kernel that we want to use the monotonic clock for reporting timestamps
|
// Tell the kernel that we want to use the monotonic clock for reporting timestamps
|
||||||
|
Reference in New Issue
Block a user