aboutsummaryrefslogtreecommitdiff
path: root/finance/libbtc/files/patch-include_btc_portable__endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'finance/libbtc/files/patch-include_btc_portable__endian.h')
-rw-r--r--finance/libbtc/files/patch-include_btc_portable__endian.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/finance/libbtc/files/patch-include_btc_portable__endian.h b/finance/libbtc/files/patch-include_btc_portable__endian.h
new file mode 100644
index 000000000000..578623acad8b
--- /dev/null
+++ b/finance/libbtc/files/patch-include_btc_portable__endian.h
@@ -0,0 +1,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__)
+