summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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