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 --- android/hal-audio-sbc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/android/hal-audio-sbc.c b/android/hal-audio-sbc.c index 0c31035..7ad3a6a 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" -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html