diff --git a/host/bluetooth_rxtx/ubertooth.c b/host/bluetooth_rxtx/ubertooth.c index 5ec4b15..8e29a7d 100644 --- a/host/bluetooth_rxtx/ubertooth.c +++ b/host/bluetooth_rxtx/ubertooth.c @@ -24,7 +24,6 @@ #include #include #include -#include #include diff --git a/host/bluetooth_rxtx/ubertooth.h b/host/bluetooth_rxtx/ubertooth.h index 94c4ea1..4a83d36 100644 --- a/host/bluetooth_rxtx/ubertooth.h +++ b/host/bluetooth_rxtx/ubertooth.h @@ -28,6 +28,17 @@ #include #endif +#if defined __MACH__ +#include +#define htobe32 EndianU32_NtoB +#define be32toh EndianU32_BtoN +#define le32toh EndianU32_LtoN +#define htobe64 EndianU64_NtoB +#define be64toh EndianU64_BtoN +#else +#include +#endif + #include #include