aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bluez-hcidump/ntoh64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/bluez-hcidump/ntoh64.patch')
-rw-r--r--testing/bluez-hcidump/ntoh64.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/bluez-hcidump/ntoh64.patch b/testing/bluez-hcidump/ntoh64.patch
new file mode 100644
index 0000000000..6ab411f54b
--- /dev/null
+++ b/testing/bluez-hcidump/ntoh64.patch
@@ -0,0 +1,19 @@
+--- ./src/hcidump.c.orig
++++ ./src/hcidump.c
+@@ -51,6 +51,8 @@
+ #include "parser/sdp.h"
+
+ #if __BYTE_ORDER == __LITTLE_ENDIAN
++#if 0
++/* defined in bluetooth.h from bluez */
+ static inline uint64_t ntoh64(uint64_t n)
+ {
+ uint64_t h;
+@@ -59,6 +61,7 @@
+ h |= tmp << 32;
+ return h;
+ }
++#endif
+ #elif __BYTE_ORDER == __BIG_ENDIAN
+ #define ntoh64(x) (x)
+ #else