summaryrefslogtreecommitdiffstats
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
commit1c3d010a6c111caf97589c5f3ee3e12fd1f2bda8 (patch)
tree99cf1de133b40d69936148110d7c828d0e036481 /config.h.post
parentd66e91d61c8aa0c9b9bb234a683fcda0a15be65b (diff)
downloadmandoc-1c3d010a6c111caf97589c5f3ee3e12fd1f2bda8.tar.gz
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