Fix libinput mac build, hopefully.

Restore the ifdefs removed in go/ag/12549959, but using
ifdef __linux__ instead of __ANDROID__.

Test: m libinput
Bug: 172023026
Change-Id: Iafbf592e7b937b780e5ffc2df490a6c17f5f6cf5
4 files changed