$NetBSD$

--- hotspot/src/os_cpu/bsd_x86/vm/bytes_bsd_x86.inline.hpp.orig	2009-09-24 22:52:54.000000000 +0200
+++ hotspot/src/os_cpu/bsd_x86/vm/bytes_bsd_x86.inline.hpp
@@ -40,6 +40,7 @@
 #    define bswap_32(x)	swap32(x)
 #    define bswap_64(x)	swap64(x)
 #  elif defined(__NetBSD__)
+#    include <machine/bswap.h>
 #    define bswap_16(x)	bswap16(x)
 #    define bswap_32(x)	bswap32(x)
 #    define bswap_64(x)	bswap64(x)
