Compilation fails when using bluetooth/hci.h without other includes. > /usr/include/bluetooth/hci.h:310:9: error: unknown type name ‘uint8_t’ > 310 | uint8_t lap[3]; > | ^~~~~~~ > ... > /usr/include/bluetooth/hci.h:383:9: error: unknown type name ‘bdaddr_t’; did you mean ‘daddr_t’? > 383 | bdaddr_t bdaddr; > | ^~~~~~~~ > ... --- lib/bluetooth/hci.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bluetooth/hci.h b/lib/bluetooth/hci.h index 8f59a535a..732477ec4 100644 --- a/lib/bluetooth/hci.h +++ b/lib/bluetooth/hci.h @@ -17,8 +17,11 @@ extern "C" { #endif +#include <stdint.h> #include <sys/socket.h> +#include <bluetooth/bluetooth.h> + #define HCI_MAX_DEV 16 #define HCI_MAX_AMP_SIZE (1492 + 4) -- 2.47.2