summaryrefslogtreecommitdiffstats
path: root/main/bluez-hcidump/ntoh64.patch
blob: 6ab411f54b37975410da0907883842d5760a3105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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