$NetBSD: patch-aa,v 1.1.1.1 2007/07/31 18:18:57 noud4 Exp $

--- bswap.h.orig	Sun Nov 14 15:51:33 2004
+++ bswap.h
@@ -5,6 +5,12 @@
 
 #include <inttypes.h>
 
+#ifdef HAVE_MACHINE_BSWAP_H
+#include <sys/endian.h>
+#include <sys/types.h>
+#include <machine/bswap.h>
+#else
+
 #ifdef HAVE_BYTESWAP_H
 #include <byteswap.h>
 #else
@@ -57,6 +63,8 @@ static inline uint64_t bswap64(uint64_t 
 {
     return bswap_64(x);
 }
+
+#endif /* ! HAVE_MACHINE_BSWAP_H */
 
 static inline void bswap16s(uint16_t *s)
 {
