diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-09-19 16:10:06 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-09-24 21:31:13 +0300 |
commit | 921894c4e280b8153bc0f727a6401baa949f642c (patch) | |
tree | 140ac823054a9b0e3b0be16d3d70519f2f053ae7 /android/hal-audio-sbc.c | |
parent | b1ed44f5deace382b2a03529e3d04bb7e7bc9e84 (diff) | |
download | bluez-921894c4e280b8153bc0f727a6401baa949f642c.tar.gz |
android/hal-audio: Fix compilation errors with musl
CC android/android_audio_a2dp_default_la-hal-audio-sbc.lo
android/hal-audio-sbc.c: In function 'sbc_codec_init':
android/hal-audio-sbc.c:269:2: error: implicit declaration of function
'calloc' [-Werror=implicit-function-declaration]
sbc_data = calloc(sizeof(struct sbc_data), 1);
^
android/hal-audio-sbc.c:269:13: error: incompatible implicit
declaration of built-in function 'calloc' [-Werror]
sbc_data = calloc(sizeof(struct sbc_data), 1);
^
android/hal-audio-sbc.c: In function 'sbc_cleanup':
android/hal-audio-sbc.c:291:2: error: implicit declaration of function
'free' [-Werror=implicit-function-declaration]
free(codec_data);
^
android/hal-audio-sbc.c:291:2: error: incompatible implicit declaration
of built-in function 'free' [-Werror]
cc1: all warnings being treated as errors
Diffstat (limited to 'android/hal-audio-sbc.c')
-rw-r--r-- | android/hal-audio-sbc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/hal-audio-sbc.c b/android/hal-audio-sbc.c index 0c310350a..7ad3a6a51 100644 --- a/android/hal-audio-sbc.c +++ b/android/hal-audio-sbc.c @@ -18,6 +18,7 @@ #include <stdbool.h> #include <string.h> #include <malloc.h> +#include <stdlib.h> #include <sbc/sbc.h> #include "audio-msg.h" |