$NetBSD: patch-aa,v 1.11 2014/10/01 12:18:19 wiz Exp $

DragonFly support.

--- src/bswap.h.orig	2014-01-02 15:37:37.000000000 +0000
+++ src/bswap.h
@@ -73,6 +73,12 @@
 #define B2N_32(x) x = ENDIAN_RET32(x)
 #define B2N_64(x) x = ENDIAN_RET64(x)
 
+#elif defined(__DragonFly__)
+#include <sys/endian.h>
+#define B2N_16(x) x = bswap16(x)
+#define B2N_32(x) x = bswap32(x)
+#define B2N_64(x) x = bswap64(x)
+
 /* This is a slow but portable implementation, it has multiple evaluation
  * problems so beware.
  * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such
