freebsd-ports/textproc/mdocml/files/patch-config
Ulrich Spörlein 16d9d5f5d8 Update mdocml to 1.12.1
Approved by:	beat (mentor)
Feature safe:	yes
2012-03-24 08:40:36 +00:00

15 lines
543 B
Text

--- config.h.post.orig 2012-03-24 03:19:14.000000000 +0100
+++ config.h.post 2012-03-24 07:38:50.000000000 +0100
@@ -20,6 +20,12 @@
# define betoh32(x) OSSwapBigToHostInt32(x)
# define htobe64(x) OSSwapHostToBigInt64(x)
# define betoh64(x) OSSwapBigToHostInt64(x)
+#elif defined(__FreeBSD__)
+/* FreeBSD doesn't have these for userland code, yet. */
+# define betoh32(x) (x)
+# define betoh64(x) (x)
+# define htobe32(x) (x)
+# define htobe64(x) (x)
#elif defined(__linux__)
# define betoh32(x) be32toh(x)
# define betoh64(x) be64toh(x)