aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ext/csiphash.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ext/csiphash.c b/src/ext/csiphash.c
index 30be40b51..4f58c4a14 100644
--- a/src/ext/csiphash.c
+++ b/src/ext/csiphash.c
@@ -58,7 +58,11 @@
__BYTE_ORDER == __LITTLE_ENDIAN
# define _le64toh(x) ((uint64_t)(x))
# else
-# define _le64toh(x) le64toh(x)
+# if defined(__OpenBSD__)
+# define _le64toh(x) letoh64(x)
+# else
+# define _le64toh(x) le64toh(x)
+# endif
# endif
#endif