summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-10-18 21:52:41 -0700
committer Colin Cross <ccross@android.com> 2022-10-18 21:52:41 -0700
commit5b79930750cdfd7c9aa09f95fdfe3fa9ecc34768 (patch)
treeb9404b0cc41ab67d3b9ecb49b95ce9852a334664 /libs/gui/BLASTBufferQueue.cpp
parent22c43f5828ea5b995f699f13246ed323539e9575 (diff)
Make inputflinger_tests compile for musl
inputflinger_tests compile for the host now, so they need to be compatible with musl libc. Use LLONG_MIN and LLONG_MAX instead of the nonstandard LONG_LONG_MIN and LONG_LONG_MAX. Use input_event_sec and input_event_usec to intialize time fields in struct input_event, they are not always stored in a struct timespec. Include linux/ioctl.h to define _IOC_SIZE. Cast tv_sec and tv_usec to long long, as the type can be any integer type. Cast EPOLLIN to compare with epoll_event.events, it is not unsigned in musl. Include transitive dependencies of static libraries that are not needed by the linker when CFI is enabled, but are detected as errors when CFI is not enabled. Bug: 190084016 Test: m USE_HOST_MUSL=true inputflinger_tests Change-Id: I625bb612d5a8816ec5d1ade6d3a887981a549569
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions