From: Szymon Janc <szymon.janc@xxxxxxxxx> This fix following build error on Linux: make --no-print-directory all-am CC android/android_haltest-hal_bluetooth.o android/hal_bluetooth.c: In function ‘start_bt_daemon’: android/hal_bluetooth.c:60:4: error: implicit declaration of function ‘strcmp’ [-Werror=implicit-function-declaration] if (!strcmp(val, "running")) { ^ android/hal_bluetooth.c: In function ‘open_bluetooth’: android/hal_bluetooth.c:364:2: error: implicit declaration of function ‘memset’ [-Werror=implicit-function-declaration] memset(dev, 0, sizeof(bluetooth_device_t)); ^ android/hal_bluetooth.c:364:2: error: incompatible implicit declaration of built-in function ‘memset’ [-Werror] cc1: all warnings being treated as errors make[1]: *** [android/android_haltest-hal_bluetooth.o] Error 1 --- android/hal_bluetooth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/android/hal_bluetooth.c b/android/hal_bluetooth.c index a34dc91..e92da41 100644 --- a/android/hal_bluetooth.c +++ b/android/hal_bluetooth.c @@ -19,6 +19,7 @@ #include <stdlib.h> #include <unistd.h> #include <stdbool.h> +#include <string.h> #include <hardware/bluetooth.h> #include <hardware/bt_sock.h> -- 1.8.4 -- 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