summaryrefslogtreecommitdiff
path: root/cad/admesh/files/patch-src_portable__endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'cad/admesh/files/patch-src_portable__endian.h')
-rw-r--r--cad/admesh/files/patch-src_portable__endian.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/cad/admesh/files/patch-src_portable__endian.h b/cad/admesh/files/patch-src_portable__endian.h
new file mode 100644
index 000000000000..f8b5b113e4c5
--- /dev/null
+++ b/cad/admesh/files/patch-src_portable__endian.h
@@ -0,0 +1,18 @@
+--- src/portable_endian.h.orig 2019-10-12 18:24:24 UTC
++++ src/portable_endian.h
+@@ -54,6 +54,7 @@
+
+ # include <sys/endian.h>
+
++#if !defined(__FreeBSD__)
+ # define be16toh(x) betoh16(x)
+ # define le16toh(x) letoh16(x)
+
+@@ -62,6 +63,7 @@
+
+ # define be64toh(x) betoh64(x)
+ # define le64toh(x) letoh64(x)
++#endif /*!defined(__FreeBSD__)*/
+
+ #elif defined(__WINDOWS__)
+