--- roms/u-boot/lib/bch.c.orig	2021-06-20 14:25:21 UTC
+++ roms/u-boot/lib/bch.c
@@ -60,7 +60,7 @@
 #include <linux/bitops.h>
 #else
 #include <errno.h>
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
 #include <sys/endian.h>
 #else
 #include <endian.h>
