summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/endian_type.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/endian_type.hpp b/src/core/endian_type.hpp
index b674928ee..1b927ef45 100644
--- a/src/core/endian_type.hpp
+++ b/src/core/endian_type.hpp
@@ -33,6 +33,13 @@
# else
# define TTD_ENDIAN TTD_BIG_ENDIAN
# endif
+#elif defined(__OpenBSD__)
+# include <endian.h>
+# if BYTE_ORDER == LITTLE_ENDIAN
+# define TTD_ENDIAN TTD_LITTLE_ENDIAN
+# else
+# define TTD_ENDIAN TTD_BIG_ENDIAN
+# endif
#elif !defined(TESTING)
# include <sys/param.h>
# if __BYTE_ORDER == __LITTLE_ENDIAN