blob: 0610446e51e220240efae68238d7bff82eb90113 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- 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)
|