summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg V <[email protected]>2017-10-23 23:20:43 +0300
committerEmil Velikov <[email protected]>2017-10-26 15:11:38 +0100
commit9d8c91eb913c77586a64f85eddf8b44875fad74a (patch)
treef7066ed4fe99905e341a65bb0637be200dd7b338 /src
parentcece4ff6a328bff015e0905442254e27d339f6a0 (diff)
util: use OpenBSD/NetBSD code on FreeBSD/DragonFly
Obtained from: FreeBSD ports Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Brian Paul <[email protected]> [Emil Velikov: wrap long line] Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/util/u_endian.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/u_endian.h b/src/util/u_endian.h
index b9d563dd435..7bbd7dc2153 100644
--- a/src/util/u_endian.h
+++ b/src/util/u_endian.h
@@ -54,7 +54,8 @@
# define PIPE_ARCH_BIG_ENDIAN
#endif
-#elif defined(__OpenBSD__) || defined(__NetBSD__)
+#elif defined(__OpenBSD__) || defined(__NetBSD__) || \
+ defined(__FreeBSD__) || defined(__DragonFly__)
#include <sys/types.h>
#include <machine/endian.h>