summaryrefslogtreecommitdiff
path: root/cad/admesh/files/patch-src_portable__endian.h
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2019-10-31 16:55:39 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2019-10-31 16:55:39 +0000
commitd3948f55148eb16d3cf29a83d526185b1e80af4c (patch)
tree3b22b5807089787ba65ad132e9dc51a9b4ef2579 /cad/admesh/files/patch-src_portable__endian.h
parentNew port: www/riot-web: Glossy Matrix collaboration client for the web (diff)
cad/admesh: update to 0.98.4
From ChangeLog (https://github.com/admesh/admesh/releases/tag/v0.98.4) * Fix big-endian binary stl reading * Initialized extra values when loading ASCII STL Reported by: portscout
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__)
+