Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6288751 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am 22108007: am 01e42c0b: Merge "Fix libinput to build with uapi headers."

* commit '22108007':
  Fix libinput to build with uapi headers.
parents 8a71cdae 22108007
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1254,6 +1254,12 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {

    // Enable wake-lock behavior on kernels that support it.
    // 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);

    // Tell the kernel that we want to use the monotonic clock for reporting timestamps