blob: 954f30e8148b06feea8dacdbcaa867790b5ede13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-src_af_util_xp_ut__endian.h,v 1.1 2015/09/13 21:32:13 nros Exp $
--- src/af/util/xp/ut_endian.h.orig 2013-04-07 13:53:03.000000000 +0000
+++ src/af/util/xp/ut_endian.h
@@ -49,6 +49,13 @@
#else
#define UT_BIG_ENDIAN
#endif
+#elif defined(__DragonFly__)
+ #include <sys/endian.h>
+ #if _BYTE_ORDER == _LITTLE_ENDIAN
+ #define UT_LITTLE_ENDIAN
+ #else
+ #define UT_BIG_ENDIAN
+ #endif
#elif defined(__FreeBSD__)
#include <machine/endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
|