commit | a74215866755cac849a8c626e77e2ae7fd411d95 | [log] [tgz] |
---|---|---|
author | Adrian Ratiu <[email protected]> | Mon Mar 01 20:04:37 2021 +0200 |
committer | Jim Pollock <[email protected]> | Fri Mar 05 09:55:15 2021 +0000 |
tree | 917a6d6ff3258d1e12034f053e7b33b9c92fbd9e | |
parent | 3aab337293a71c04717edbcee1b95da4f26c31f1 [diff] |
threads.h: avoid defining gettid on glibc >= 2.32 Glibc >=2.32 exposes a gettid() which clashes with libcutils thread.h, so add a check to not expose it if building against newer glibc (ChromiumOS will still use glibc 2.27 besides 2.32). Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1182060 Test: Builds without errors on both glibc 2.32 and 2.27. Change-Id: Ib71fa1bc9fa185e3668002407dbed05a80c87740