From 724246bc74e3876388f15fbaa5afb5f06badc283 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sun, 8 Sep 2019 13:20:07 -0700 Subject: [PATCH] Fix macOS build. There's no on Darwin. Normally I'd say "prefer ", but in this case it looks like the code actually uses memalign. There is no memalign on Darwin. You'll need to switch to posix_memalign if you actually care about building this. For now, the easiest is to just exclude macOS. Test: treehugger Change-Id: Id8a11cd141f5c4bd30ce95b61ac64759e17732fc --- fuzzer/Android.bp | 5 +++++ test/Android.bp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/fuzzer/Android.bp b/fuzzer/Android.bp index 93aeb06..8540107 100644 --- a/fuzzer/Android.bp +++ b/fuzzer/Android.bp @@ -8,4 +8,9 @@ cc_fuzz { "libavcdec", "liblog", ], + target: { + darwin: { + enabled: false, + }, + }, } diff --git a/test/Android.bp b/test/Android.bp index 05ea1b7..70307da 100644 --- a/test/Android.bp +++ b/test/Android.bp @@ -16,6 +16,11 @@ cc_test { srcs: ["decoder/main.c"], static_libs: ["libavcdec"], shared_libs: ["liblog"], + target: { + darwin: { + enabled: false, + }, + }, } cc_test {