Fix macOS build.

There's no <malloc.h> on Darwin. Normally I'd say "prefer <stdlib.h>",
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
This commit is contained in:
Elliott Hughes 2019-09-08 13:20:07 -07:00
parent ea14d495b1
commit 724246bc74
2 changed files with 10 additions and 0 deletions

View file

@ -8,4 +8,9 @@ cc_fuzz {
"libavcdec", "libavcdec",
"liblog", "liblog",
], ],
target: {
darwin: {
enabled: false,
},
},
} }

View file

@ -16,6 +16,11 @@ cc_test {
srcs: ["decoder/main.c"], srcs: ["decoder/main.c"],
static_libs: ["libavcdec"], static_libs: ["libavcdec"],
shared_libs: ["liblog"], shared_libs: ["liblog"],
target: {
darwin: {
enabled: false,
},
},
} }
cc_test { cc_test {