From 5df93799e00021857274a79d75880f0a2ed6bf54 Mon Sep 17 00:00:00 2001 From: Abhishek Pandit-Subedi <abhishekpandit@google.com> Date: Sat, 4 Feb 2023 14:55:22 -0800 Subject: [PATCH] floss: Add missing headers in various files Bug: 267796404 Tag: #floss Test: ./build.py Change-Id: I13bf5b07899150045d60948c787ecd6b226da008 --- system/bta/include/bta_api.h | 2 +- system/btif/src/btif_hf.cc | 1 + system/btif/src/btif_sock.cc | 1 + system/stack/btm/btm_sco_hci.cc | 1 + system/stack/hid/hidd_conn.cc | 1 + system/stack/hid/hidh_conn.cc | 1 + system/stack/l2cap/l2c_csm.cc | 1 + system/stack/rfcomm/port_rfc.cc | 1 + 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/system/bta/include/bta_api.h b/system/bta/include/bta_api.h index 4331919f9e3..c17c516b499 100644 --- a/system/bta/include/bta_api.h +++ b/system/bta/include/bta_api.h @@ -26,11 +26,11 @@ #define BTA_API_H #include <base/strings/stringprintf.h> +#include <base/callback.h> #include <cstdint> #include <vector> -#include "base/callback.h" #include "bt_target.h" // Must be first to define build configuration #include "osi/include/log.h" #include "stack/include/bt_octets.h" diff --git a/system/btif/src/btif_hf.cc b/system/btif/src/btif_hf.cc index e20f2b8c761..868cee7dee3 100644 --- a/system/btif/src/btif_hf.cc +++ b/system/btif/src/btif_hf.cc @@ -27,6 +27,7 @@ #define LOG_TAG "bt_btif_hf" +#include <base/callback.h> #include <base/logging.h> #include <frameworks/proto_logging/stats/enums/bluetooth/enums.pb.h> diff --git a/system/btif/src/btif_sock.cc b/system/btif/src/btif_sock.cc index b945f4bd593..fba5f54110e 100644 --- a/system/btif/src/btif_sock.cc +++ b/system/btif/src/btif_sock.cc @@ -18,6 +18,7 @@ #define LOG_TAG "bt_btif_sock" +#include <base/callback.h> #include <base/logging.h> #include <frameworks/proto_logging/stats/enums/bluetooth/enums.pb.h> #include <hardware/bluetooth.h> diff --git a/system/stack/btm/btm_sco_hci.cc b/system/stack/btm/btm_sco_hci.cc index 8c59fe29a62..d731002799d 100644 --- a/system/stack/btm/btm_sco_hci.cc +++ b/system/stack/btm/btm_sco_hci.cc @@ -16,6 +16,7 @@ #include <errno.h> #include <grp.h> +#include <math.h> #include <sys/stat.h> #include <unistd.h> diff --git a/system/stack/hid/hidd_conn.cc b/system/stack/hid/hidd_conn.cc index cca05902231..e80bc933f86 100644 --- a/system/stack/hid/hidd_conn.cc +++ b/system/stack/hid/hidd_conn.cc @@ -23,6 +23,7 @@ * ******************************************************************************/ +#include <base/callback.h> #include <base/logging.h> #include <frameworks/proto_logging/stats/enums/bluetooth/enums.pb.h> diff --git a/system/stack/hid/hidh_conn.cc b/system/stack/hid/hidh_conn.cc index 7ad2b8c6478..102573253f4 100644 --- a/system/stack/hid/hidh_conn.cc +++ b/system/stack/hid/hidh_conn.cc @@ -22,6 +22,7 @@ * ******************************************************************************/ +#include <base/callback.h> #include <base/logging.h> #include <base/strings/stringprintf.h> #include <frameworks/proto_logging/stats/enums/bluetooth/enums.pb.h> diff --git a/system/stack/l2cap/l2c_csm.cc b/system/stack/l2cap/l2c_csm.cc index 9fed64a15e0..2632845db6f 100755 --- a/system/stack/l2cap/l2c_csm.cc +++ b/system/stack/l2cap/l2c_csm.cc @@ -23,6 +23,7 @@ ******************************************************************************/ #define LOG_TAG "l2c_csm" +#include <base/callback.h> #include <base/logging.h> #include <frameworks/proto_logging/stats/enums/bluetooth/enums.pb.h> diff --git a/system/stack/rfcomm/port_rfc.cc b/system/stack/rfcomm/port_rfc.cc index 5792125a25a..7d6f900e965 100644 --- a/system/stack/rfcomm/port_rfc.cc +++ b/system/stack/rfcomm/port_rfc.cc @@ -23,6 +23,7 @@ * ******************************************************************************/ +#include <base/callback.h> #include <base/logging.h> #include <frameworks/proto_logging/stats/enums/bluetooth/enums.pb.h> -- GitLab