util: use OpenBSD/NetBSD code on FreeBSD/DragonFly
authorGreg V <greg@unrelenting.technology>
Mon, 23 Oct 2017 20:20:43 +0000 (23:20 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 26 Oct 2017 14:11:38 +0000 (15:11 +0100)
Obtained from: FreeBSD ports

Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
[Emil Velikov: wrap long line]
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/util/u_endian.h

index b9d563dd4353c34a206d13971d814fee7911dae2..7bbd7dc2153686f29d0d9a567463636b7accb21d 100644 (file)
@@ -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>