aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config.h.post
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2012-03-24 06:23:14 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2012-03-24 06:23:14 +0000
commit6a0e2d8a40b8efdd722af5fc08192a8b900f5760 (patch)
tree62d9caa7641db15281ea9af30142a26c265587d6 /config.h.post
parent11144626d03f2c5c2880276685e9592dafdc8494 (diff)
downloadmandoc-6a0e2d8a40b8efdd722af5fc08192a8b900f5760.tar.gz
mandoc-6a0e2d8a40b8efdd722af5fc08192a8b900f5760.tar.zst
mandoc-6a0e2d8a40b8efdd722af5fc08192a8b900f5760.zip
FreeBSD, NetBSD and DragonFly use the same names as Linux.
Add dummy entry for OpenBSD and XXX entry for the rest.
Diffstat (limited to 'config.h.post')
-rw-r--r--config.h.post6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.h.post b/config.h.post
index 39da2b2f..90d1edf9 100644
--- a/config.h.post
+++ b/config.h.post
@@ -20,9 +20,13 @@
# define betoh32(x) OSSwapBigToHostInt32(x)
# define htobe64(x) OSSwapHostToBigInt64(x)
# define betoh64(x) OSSwapBigToHostInt64(x)
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
# define betoh32(x) be32toh(x)
# define betoh64(x) be64toh(x)
+#elif defined(__OpenBSD__)
+/* Nothing */
+#else
+/* XXX Fallback */
#endif
#ifndef HAVE_STRLCAT