aboutsummaryrefslogtreecommitdiff
path: root/finance/libbtc/files/patch-include_btc_portable__endian.h
blob: 578623acad8beb154ab23e91892d05e1f3d04d2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- include/btc/portable_endian.h.orig	2022-05-07 20:37:35 UTC
+++ include/btc/portable_endian.h
@@ -49,6 +49,7 @@
 
 #include <sys/endian.h>
 
+#if !defined(__FreeBSD__)
 #define be16toh(x) betoh16(x)
 #define le16toh(x) letoh16(x)
 
@@ -57,6 +58,7 @@
 
 #define be64toh(x) betoh64(x)
 #define le64toh(x) letoh64(x)
+#endif
 
 #elif defined(__WINDOWS__)