$NetBSD: patch-sa,v 1.2 2009/06/07 11:23:47 wiz Exp $

--- hw/xfree86/common/compiler.h.orig	2009-07-07 19:48:58.000000000 +0200
+++ hw/xfree86/common/compiler.h	2009-09-20 11:51:51.000000000 +0200
@@ -465,7 +465,7 @@
 extern unsigned int inw(unsigned long port);
 extern unsigned int inl(unsigned long port);
  
-#   elif defined(linux) && defined(__amd64__)
+#   elif (defined(linux) || defined(__FreeBSD__)) && defined(__amd64__)
  
 #    include <inttypes.h>
 
@@ -531,7 +531,7 @@
    return ret;
 }
 
-#   elif (defined(linux) || defined(sun) || defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__sparc__)
+#   elif (defined(linux) || defined(sun) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)) && defined(__sparc__)
 
 #     ifndef ASI_PL
 #      define ASI_PL 0x88
