15 lines
543 B
Text
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)
|