[asan] Fix test compilation on Android API <= 17
authorShoaib Meenai <smeenai@fb.com>
Tue, 28 Jan 2020 01:25:38 +0000 (17:25 -0800)
committerShoaib Meenai <smeenai@fb.com>
Tue, 28 Jan 2020 22:36:19 +0000 (14:36 -0800)
commitd8f6950828df9959c84a659377214266d64be68e
treee9f67793f3b0c67f9524b84f5eb0e27a7d43f88c
parent2e745ba6b0baa1083d64e7363743ba9457ebd187
[asan] Fix test compilation on Android API <= 17

mlockall and munlockall were introduced in Android API 17, so avoid
referencing them on prior versions.

Differential Revision: https://reviews.llvm.org/D73515
compiler-rt/lib/asan/tests/asan_test.cpp