Compilation fails when using bluetooth/hci_lib.h without other includes. > /usr/include/bluetooth/hci_lib.h:21:9: error: unknown type name ‘uint16_t’ > 21 | uint16_t ogf; > | ^~~~~~~~ > ... > /usr/include/bluetooth/hci_lib.h:182:27: error: ‘HCI_VENDOR_PKT’ undeclared > 182 | hci_set_bit((t == HCI_VENDOR_PKT) ? 0 : (t & HCI_FLT_TYPE_BITS), &f->type_mask); > | ^~~~~~~~~~~~~~ --- lib/bluetooth/hci_lib.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/bluetooth/hci_lib.h b/lib/bluetooth/hci_lib.h index 2cb660786..eeb51411a 100644 --- a/lib/bluetooth/hci_lib.h +++ b/lib/bluetooth/hci_lib.h @@ -17,6 +17,12 @@ extern "C" { #endif +#include <stdint.h> +#include <string.h> + +#include <bluetooth/bluetooth.h> +#include <bluetooth/hci.h> + struct hci_request { uint16_t ogf; uint16_t ocf; -- 2.47.2